[][src]Trait rand::distributions::Sample

pub trait Sample<Support> {
    fn sample<R>(&mut self, rng: &mut R) -> Support
    where
        R: Rng
; }

Types that can be used to create a random instance of Support.

Required methods

fn sample<R>(&mut self, rng: &mut R) -> Support where
    R: Rng

Generate a random value of Support, using rng as the source of randomness.

Loading content...

Implementors

impl Sample<f64> for FisherF
[src]

impl Sample<f64> for Gamma
[src]

impl Sample<f64> for ChiSquared
[src]

impl Sample<f64> for Exp
[src]

impl Sample<f64> for Normal
[src]

impl Sample<f64> for LogNormal
[src]

impl Sample<f64> for StudentT
[src]

impl<'a, T> Sample<T> for WeightedChoice<'a, T> where
    T: Clone
[src]

impl<Sup> Sample<Sup> for Range<Sup> where
    Sup: SampleRange
[src]

impl<Sup> Sample<Sup> for RandSample<Sup> where
    Sup: Rand
[src]

Loading content...