Trait std::rand::distributions::IndependentSampleUnstable [-] [+] [src]

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

Samples that do not require keeping track of state.

Since no state is recorded, each sample is (statistically) independent of all others, assuming the Rng used has this property.

Required Methods

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

Generate a random value.

Implementors