Trait rand::distributions::Sample
[−]
[src]
pub trait Sample<Support> { fn sample<R: Rng>(&mut self, rng: &mut R) -> Support; }
Types that can be used to create a random instance of Support
.
Required Methods
fn sample<R: Rng>(&mut self, rng: &mut R) -> Support
Generate a random value of Support
, using rng
as the
source of randomness.
Implementors
impl<Sup: SampleRange> Sample for Range<Sup>
impl Sample for Gamma
impl Sample for ChiSquared
impl Sample for FisherF
impl Sample for StudentT
impl Sample for Normal
impl Sample for LogNormal
impl Sample for Exp
impl<Sup: Rand> Sample for RandSample<Sup>
impl<'a, T: Clone> Sample for WeightedChoice<'a, T>