[][src]Trait rand::distributions::IndependentSample

pub trait IndependentSample<Support>: Sample<Support> {
    fn ind_sample<R: Rng>(&self, _: &mut R) -> Support;
}
Deprecated since 0.5.0:

use Distribution instead

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: Rng>(&self, _: &mut R) -> Support

Deprecated since 0.5.0:

use Distribution instead

Generate a random value.

Loading content...

Implementors

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

impl<T: SampleRange> IndependentSample<T> for Range<T>[src]

Loading content...