# [−] [src] Trait rand::distributions::Distribution

    pub trait Distribution<T> {
        fn sample<R: Rng + ?Sized>(&self, rng: &mut R) -> T;

        fn sample_iter<R>(self, rng: R) -> DistIter<Self, R, T>
        where
            R: Rng,
            Self: Sized,
        { ... }
    }

Types (distributions) that can be used to create a random instance of `T`.

It is possible to sample from a distribution through both the `Distribution` and [`Rng`] traits, via `distr.sample(&mut rng)` and `rng.sample(distr)`. They also both offer the `sample_iter` method, which produces an iterator that samples from the distribution.

All implementations are expected to be immutable; this has the significant advantage of not needing to consider thread safety, and for most distributions efficient state-less sampling algorithms are available.

## Required methods

### `fn sample<R: Rng + ?Sized>(&self, rng: &mut R) -> T`

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

Loading content...

## Provided methods

###
ⓘImportant traits for DistIter<D, R, T>

### Important traits for DistIter<D, R, T>

`impl<D, R, T> Iterator for DistIter<D, R, T> where
D: Distribution<T>,
R: Rng, type Item = T;`
`fn sample_iter<R>(self, rng: R) -> DistIter<Self, R, T> where
R: Rng,
Self: Sized,`

Create an iterator that generates random values of `T`, using `rng` as the source of randomness.

Note that this function takes `self` by value. This works since `Distribution<T>` is impl'd for `&D` where `D: Distribution<T>`, however borrowing is not automatic hence `distr.sample_iter(...)` may need to be replaced with `(&distr).sample_iter(...)` to borrow or `(&*distr).sample_iter(...)` to reborrow an existing reference.

# Example

    use rand::thread_rng;
    use rand::distributions::{Distribution, Alphanumeric, Uniform, Standard};

    let rng = thread_rng();

    // Vec of 16 x f32:
    let v: Vec<f32> = Standard.sample_iter(rng).take(16).collect();

    // String:
    let s: String = Alphanumeric.sample_iter(rng).take(7).collect();

    // Dice-rolling:
    let die_range = Uniform::new_inclusive(1, 6);
    let mut roll_die = die_range.sample_iter(rng);
    while roll_die.next().unwrap() != 6 {
        println!("Not a 6; rolling again!");
    }

Loading content...

## Implementations on Foreign Types

### `impl<'a, T, D: Distribution<T>> Distribution<T> for &'a D` [src]

#### `fn sample<R: Rng + ?Sized>(&self, rng: &mut R) -> T` [src]

####
ⓘImportant traits for DistIter<D, R, T>

### Important traits for DistIter<D, R, T>

`impl<D, R, T> Iterator for DistIter<D, R, T> where
D: Distribution<T>,
R: Rng, type Item = T;`
`fn sample_iter<R>(self, rng: R) -> DistIter<Self, R, T> where
R: Rng,
Self: Sized,` [src]

Loading content...

## Implementors

### `impl Distribution<[f64; 2]> for UnitCircle` [src]

#### `fn sample<R: Rng + ?Sized>(&self, rng: &mut R) -> [f64; 2]` [src]

####
ⓘImportant traits for DistIter<D, R, T>

### Important traits for DistIter<D, R, T>

`impl<D, R, T> Iterator for DistIter<D, R, T> where
D: Distribution<T>,
R: Rng, type Item = T;`
`fn sample_iter<R>(self, rng: R) -> DistIter<Self, R, T> where
R: Rng,
Self: Sized,` [src]

### `impl Distribution<[f64; 3]> for UnitSphereSurface` [src]

#### `fn sample<R: Rng + ?Sized>(&self, rng: &mut R) -> [f64; 3]` [src]

####
ⓘImportant traits for DistIter<D, R, T>

### Important traits for DistIter<D, R, T>

`impl<D, R, T> Iterator for DistIter<D, R, T> where
D: Distribution<T>,
R: Rng, type Item = T;`
`fn sample_iter<R>(self, rng: R) -> DistIter<Self, R, T> where
R: Rng,
Self: Sized,` [src]

### `impl Distribution<bool> for Bernoulli` [src]

#### `fn sample<R: Rng + ?Sized>(&self, rng: &mut R) -> bool` [src]

####
ⓘImportant traits for DistIter<D, R, T>

### Important traits for DistIter<D, R, T>

`impl<D, R, T> Iterator for DistIter<D, R, T> where
D: Distribution<T>,
R: Rng, type Item = T;`
`fn sample_iter<R>(self, rng: R) -> DistIter<Self, R, T> where
R: Rng,
Self: Sized,` [src]

### `impl Distribution<bool> for Standard` [src]

#### `fn sample<R: Rng + ?Sized>(&self, rng: &mut R) -> bool` [src]

####
ⓘImportant traits for DistIter<D, R, T>

### Important traits for DistIter<D, R, T>

`impl<D, R, T> Iterator for DistIter<D, R, T> where
D: Distribution<T>,
R: Rng, type Item = T;`
`fn sample_iter<R>(self, rng: R) -> DistIter<Self, R, T> where
R: Rng,
Self: Sized,` [src]

### `impl Distribution<char> for Alphanumeric` [src]

#### `fn sample<R: Rng + ?Sized>(&self, rng: &mut R) -> char` [src]

####
ⓘImportant traits for DistIter<D, R, T>

### Important traits for DistIter<D, R, T>

`impl<D, R, T> Iterator for DistIter<D, R, T> where
D: Distribution<T>,
R: Rng, type Item = T;`
`fn sample_iter<R>(self, rng: R) -> DistIter<Self, R, T> where
R: Rng,
Self: Sized,` [src]

### `impl Distribution<char> for Standard` [src]

#### `fn sample<R: Rng + ?Sized>(&self, rng: &mut R) -> char` [src]

####
ⓘImportant traits for DistIter<D, R, T>

### Important traits for DistIter<D, R, T>

`impl<D, R, T> Iterator for DistIter<D, R, T> where
D: Distribution<T>,
R: Rng, type Item = T;`
`fn sample_iter<R>(self, rng: R) -> DistIter<Self, R, T> where
R: Rng,
Self: Sized,` [src]

### `impl Distribution<f32> for Standard` [src]

#### `fn sample<R: Rng + ?Sized>(&self, rng: &mut R) -> f32` [src]

####
ⓘImportant traits for DistIter<D, R, T>

### Important traits for DistIter<D, R, T>

`impl<D, R, T> Iterator for DistIter<D, R, T> where
D: Distribution<T>,
R: Rng, type Item = T;`
`fn sample_iter<R>(self, rng: R) -> DistIter<Self, R, T> where
R: Rng,
Self: Sized,` [src]

### `impl Distribution<f32> for Open01` [src]

#### `fn sample<R: Rng + ?Sized>(&self, rng: &mut R) -> f32` [src]

####
ⓘImportant traits for DistIter<D, R, T>

### Important traits for DistIter<D, R, T>

`impl<D, R, T> Iterator for DistIter<D, R, T> where
D: Distribution<T>,
R: Rng, type Item = T;`
`fn sample_iter<R>(self, rng: R) -> DistIter<Self, R, T> where
R: Rng,
Self: Sized,` [src]

### `impl Distribution<f32> for OpenClosed01` [src]

#### `fn sample<R: Rng + ?Sized>(&self, rng: &mut R) -> f32` [src]

####
ⓘImportant traits for DistIter<D, R, T>

### Important traits for DistIter<D, R, T>

`impl<D, R, T> Iterator for DistIter<D, R, T> where
D: Distribution<T>,
R: Rng, type Item = T;`
`fn sample_iter<R>(self, rng: R) -> DistIter<Self, R, T> where
R: Rng,
Self: Sized,` [src]

### `impl Distribution<f64> for Gamma` [src]

#### `fn sample<R: Rng + ?Sized>(&self, rng: &mut R) -> f64` [src]

####
ⓘImportant traits for DistIter<D, R, T>

### Important traits for DistIter<D, R, T>

`impl<D, R, T> Iterator for DistIter<D, R, T> where
D: Distribution<T>,
R: Rng, type Item = T;`
`fn sample_iter<R>(self, rng: R) -> DistIter<Self, R, T> where
R: Rng,
Self: Sized,` [src]

### `impl Distribution<f64> for ChiSquared` [src]

#### `fn sample<R: Rng + ?Sized>(&self, rng: &mut R) -> f64` [src]

####
ⓘImportant traits for DistIter<D, R, T>

### Important traits for DistIter<D, R, T>

`impl<D, R, T> Iterator for DistIter<D, R, T> where
D: Distribution<T>,
R: Rng, type Item = T;`
`fn sample_iter<R>(self, rng: R) -> DistIter<Self, R, T> where
R: Rng,
Self: Sized,` [src]

### `impl Distribution<f64> for FisherF` [src]

#### `fn sample<R: Rng + ?Sized>(&self, rng: &mut R) -> f64` [src]

####
ⓘImportant traits for DistIter<D, R, T>

### Important traits for DistIter<D, R, T>

`impl<D, R, T> Iterator for DistIter<D, R, T> where
D: Distribution<T>,
R: Rng, type Item = T;`
`fn sample_iter<R>(self, rng: R) -> DistIter<Self, R, T> where
R: Rng,
Self: Sized,` [src]

### `impl Distribution<f64> for StudentT` [src]

#### `fn sample<R: Rng + ?Sized>(&self, rng: &mut R) -> f64` [src]

####
ⓘImportant traits for DistIter<D, R, T>

### Important traits for DistIter<D, R, T>

`impl<D, R, T> Iterator for DistIter<D, R, T> where
D: Distribution<T>,
R: Rng, type Item = T;`
`fn sample_iter<R>(self, rng: R) -> DistIter<Self, R, T> where
R: Rng,
Self: Sized,` [src]

### `impl Distribution<f64> for Beta` [src]

#### `fn sample<R: Rng + ?Sized>(&self, rng: &mut R) -> f64` [src]

####
ⓘImportant traits for DistIter<D, R, T>

### Important traits for DistIter<D, R, T>

`impl<D, R, T> Iterator for DistIter<D, R, T> where
D: Distribution<T>,
R: Rng, type Item = T;`
`fn sample_iter<R>(self, rng: R) -> DistIter<Self, R, T> where
R: Rng,
Self: Sized,` [src]

### `impl Distribution<f64> for StandardNormal` [src]

#### `fn sample<R: Rng + ?Sized>(&self, rng: &mut R) -> f64` [src]

####
ⓘImportant traits for DistIter<D, R, T>

### Important traits for DistIter<D, R, T>

`impl<D, R, T> Iterator for DistIter<D, R, T> where
D: Distribution<T>,
R: Rng, type Item = T;`
`fn sample_iter<R>(self, rng: R) -> DistIter<Self, R, T> where
R: Rng,
Self: Sized,` [src]

### `impl Distribution<f64> for Normal` [src]

#### `fn sample<R: Rng + ?Sized>(&self, rng: &mut R) -> f64` [src]

####
ⓘImportant traits for DistIter<D, R, T>

### Important traits for DistIter<D, R, T>

`impl<D, R, T> Iterator for DistIter<D, R, T> where
D: Distribution<T>,
R: Rng, type Item = T;`
`fn sample_iter<R>(self, rng: R) -> DistIter<Self, R, T> where
R: Rng,
Self: Sized,` [src]

### `impl Distribution<f64> for LogNormal` [src]

#### `fn sample<R: Rng + ?Sized>(&self, rng: &mut R) -> f64` [src]

####
ⓘImportant traits for DistIter<D, R, T>

### Important traits for DistIter<D, R, T>

`impl<D, R, T> Iterator for DistIter<D, R, T> where
D: Distribution<T>,
R: Rng, type Item = T;`
`fn sample_iter<R>(self, rng: R) -> DistIter<Self, R, T> where
R: Rng,
Self: Sized,` [src]

### `impl Distribution<f64> for Exp` [src]

#### `fn sample<R: Rng + ?Sized>(&self, rng: &mut R) -> f64` [src]

####
ⓘImportant traits for DistIter<D, R, T>

### Important traits for DistIter<D, R, T>

`impl<D, R, T> Iterator for DistIter<D, R, T> where
D: Distribution<T>,
R: Rng, type Item = T;`
`fn sample_iter<R>(self, rng: R) -> DistIter<Self, R, T> where
R: Rng,
Self: Sized,` [src]

### `impl Distribution<f64> for Pareto` [src]

#### `fn sample<R: Rng + ?Sized>(&self, rng: &mut R) -> f64` [src]

####
ⓘImportant traits for DistIter<D, R, T>

### Important traits for DistIter<D, R, T>

`impl<D, R, T> Iterator for DistIter<D, R, T> where
D: Distribution<T>,
R: Rng, type Item = T;`
`fn sample_iter<R>(self, rng: R) -> DistIter<Self, R, T> where
R: Rng,
Self: Sized,` [src]

### `impl Distribution<f64> for Cauchy` [src]

#### `fn sample<R: Rng + ?Sized>(&self, rng: &mut R) -> f64` [src]

####
ⓘImportant traits for DistIter<D, R, T>

### Important traits for DistIter<D, R, T>

`impl<D, R, T> Iterator for DistIter<D, R, T> where
D: Distribution<T>,
R: Rng, type Item = T;`
`fn sample_iter<R>(self, rng: R) -> DistIter<Self, R, T> where
R: Rng,
Self: Sized,` [src]

### `impl Distribution<f64> for Triangular` [src]

#### `fn sample<R: Rng + ?Sized>(&self, rng: &mut R) -> f64` [src]

####
ⓘImportant traits for DistIter<D, R, T>

### Important traits for DistIter<D, R, T>

`impl<D, R, T> Iterator for DistIter<D, R, T> where
D: Distribution<T>,
R: Rng, type Item = T;`
`fn sample_iter<R>(self, rng: R) -> DistIter<Self, R, T> where
R: Rng,
Self: Sized,` [src]

### `impl Distribution<f64> for Weibull` [src]

#### `fn sample<R: Rng + ?Sized>(&self, rng: &mut R) -> f64` [src]

####
ⓘImportant traits for DistIter<D, R, T>

### Important traits for DistIter<D, R, T>

`impl<D, R, T> Iterator for DistIter<D, R, T> where
D: Distribution<T>,
R: Rng, type Item = T;`
`fn sample_iter<R>(self, rng: R) -> DistIter<Self, R, T> where
R: Rng,
Self: Sized,` [src]

### `impl Distribution<f64> for Standard` [src]

#### `fn sample<R: Rng + ?Sized>(&self, rng: &mut R) -> f64` [src]

####
ⓘImportant traits for DistIter<D, R, T>

### Important traits for DistIter<D, R, T>

`impl<D, R, T> Iterator for DistIter<D, R, T> where
D: Distribution<T>,
R: Rng, type Item = T;`
`fn sample_iter<R>(self, rng: R) -> DistIter<Self, R, T> where
R: Rng,
Self: Sized,` [src]

### `impl Distribution<f64> for Exp1` [src]

#### `fn sample<R: Rng + ?Sized>(&self, rng: &mut R) -> f64` [src]

####
ⓘImportant traits for DistIter<D, R, T>

### Important traits for DistIter<D, R, T>

`impl<D, R, T> Iterator for DistIter<D, R, T> where
D: Distribution<T>,
R: Rng, type Item = T;`
`fn sample_iter<R>(self, rng: R) -> DistIter<Self, R, T> where
R: Rng,
Self: Sized,` [src]

### `impl Distribution<f64> for Open01` [src]

#### `fn sample<R: Rng + ?Sized>(&self, rng: &mut R) -> f64` [src]

####
ⓘImportant traits for DistIter<D, R, T>

### Important traits for DistIter<D, R, T>

`impl<D, R, T> Iterator for DistIter<D, R, T> where
D: Distribution<T>,
R: Rng, type Item = T;`
`fn sample_iter<R>(self, rng: R) -> DistIter<Self, R, T> where
R: Rng,
Self: Sized,` [src]

### `impl Distribution<f64> for OpenClosed01` [src]

#### `fn sample<R: Rng + ?Sized>(&self, rng: &mut R) -> f64` [src]

####
ⓘImportant traits for DistIter<D, R, T>

### Important traits for DistIter<D, R, T>

`impl<D, R, T> Iterator for DistIter<D, R, T> where
D: Distribution<T>,
R: Rng, type Item = T;`
`fn sample_iter<R>(self, rng: R) -> DistIter<Self, R, T> where
R: Rng,
Self: Sized,` [src]

### `impl Distribution<i128> for Standard` [src]

#### `fn sample<R: Rng + ?Sized>(&self, rng: &mut R) -> i128` [src]

####
ⓘImportant traits for DistIter<D, R, T>

### Important traits for DistIter<D, R, T>

`impl<D, R, T> Iterator for DistIter<D, R, T> where
D: Distribution<T>,
R: Rng, type Item = T;`
`fn sample_iter<R>(self, rng: R) -> DistIter<Self, R, T> where
R: Rng,
Self: Sized,` [src]

### `impl Distribution<i16> for Standard` [src]

#### `fn sample<R: Rng + ?Sized>(&self, rng: &mut R) -> i16` [src]

####
ⓘImportant traits for DistIter<D, R, T>

### Important traits for DistIter<D, R, T>

`impl<D, R, T> Iterator for DistIter<D, R, T> where
D: Distribution<T>,
R: Rng, type Item = T;`
`fn sample_iter<R>(self, rng: R) -> DistIter<Self, R, T> where
R: Rng,
Self: Sized,` [src]

### `impl Distribution<i32> for Standard` [src]

#### `fn sample<R: Rng + ?Sized>(&self, rng: &mut R) -> i32` [src]

####
ⓘImportant traits for DistIter<D, R, T>

### Important traits for DistIter<D, R, T>

`impl<D, R, T> Iterator for DistIter<D, R, T> where
D: Distribution<T>,
R: Rng, type Item = T;`
`fn sample_iter<R>(self, rng: R) -> DistIter<Self, R, T> where
R: Rng,
Self: Sized,` [src]

### `impl Distribution<i64> for Standard` [src]

#### `fn sample<R: Rng + ?Sized>(&self, rng: &mut R) -> i64` [src]

####
ⓘImportant traits for DistIter<D, R, T>

### Important traits for DistIter<D, R, T>

`impl<D, R, T> Iterator for DistIter<D, R, T> where
D: Distribution<T>,
R: Rng, type Item = T;`
`fn sample_iter<R>(self, rng: R) -> DistIter<Self, R, T> where
R: Rng,
Self: Sized,` [src]

### `impl Distribution<i8> for Standard` [src]

#### `fn sample<R: Rng + ?Sized>(&self, rng: &mut R) -> i8` [src]

####
ⓘImportant traits for DistIter<D, R, T>

### Important traits for DistIter<D, R, T>

`impl<D, R, T> Iterator for DistIter<D, R, T> where
D: Distribution<T>,
R: Rng, type Item = T;`
`fn sample_iter<R>(self, rng: R) -> DistIter<Self, R, T> where
R: Rng,
Self: Sized,` [src]

### `impl Distribution<isize> for Standard` [src]

#### `fn sample<R: Rng + ?Sized>(&self, rng: &mut R) -> isize` [src]

####
ⓘImportant traits for DistIter<D, R, T>

### Important traits for DistIter<D, R, T>

`impl<D, R, T> Iterator for DistIter<D, R, T> where
D: Distribution<T>,
R: Rng, type Item = T;`
`fn sample_iter<R>(self, rng: R) -> DistIter<Self, R, T> where
R: Rng,
Self: Sized,` [src]

### `impl Distribution<u128> for Standard` [src]

#### `fn sample<R: Rng + ?Sized>(&self, rng: &mut R) -> u128` [src]

####
ⓘImportant traits for DistIter<D, R, T>

### Important traits for DistIter<D, R, T>

`impl<D, R, T> Iterator for DistIter<D, R, T> where
D: Distribution<T>,
R: Rng, type Item = T;`
`fn sample_iter<R>(self, rng: R) -> DistIter<Self, R, T> where
R: Rng,
Self: Sized,` [src]

### `impl Distribution<u16> for Standard` [src]

#### `fn sample<R: Rng + ?Sized>(&self, rng: &mut R) -> u16` [src]

####
ⓘImportant traits for DistIter<D, R, T>

### Important traits for DistIter<D, R, T>

`impl<D, R, T> Iterator for DistIter<D, R, T> where
D: Distribution<T>,
R: Rng, type Item = T;`
`fn sample_iter<R>(self, rng: R) -> DistIter<Self, R, T> where
R: Rng,
Self: Sized,` [src]

### `impl Distribution<u32> for Standard` [src]

#### `fn sample<R: Rng + ?Sized>(&self, rng: &mut R) -> u32` [src]

####
ⓘImportant traits for DistIter<D, R, T>

### Important traits for DistIter<D, R, T>

`impl<D, R, T> Iterator for DistIter<D, R, T> where
D: Distribution<T>,
R: Rng, type Item = T;`
`fn sample_iter<R>(self, rng: R) -> DistIter<Self, R, T> where
R: Rng,
Self: Sized,` [src]

### `impl Distribution<u64> for Poisson` [src]

#### `fn sample<R: Rng + ?Sized>(&self, rng: &mut R) -> u64` [src]

####
ⓘImportant traits for DistIter<D, R, T>

### Important traits for DistIter<D, R, T>

`impl<D, R, T> Iterator for DistIter<D, R, T> where
D: Distribution<T>,
R: Rng, type Item = T;`
`fn sample_iter<R>(self, rng: R) -> DistIter<Self, R, T> where
R: Rng,
Self: Sized,` [src]

### `impl Distribution<u64> for Binomial` [src]

#### `fn sample<R: Rng + ?Sized>(&self, rng: &mut R) -> u64` [src]

####
ⓘImportant traits for DistIter<D, R, T>

### Important traits for DistIter<D, R, T>

`impl<D, R, T> Iterator for DistIter<D, R, T> where
D: Distribution<T>,
R: Rng, type Item = T;`
`fn sample_iter<R>(self, rng: R) -> DistIter<Self, R, T> where
R: Rng,
Self: Sized,` [src]

### `impl Distribution<u64> for Standard` [src]

#### `fn sample<R: Rng + ?Sized>(&self, rng: &mut R) -> u64` [src]

####
ⓘImportant traits for DistIter<D, R, T>

### Important traits for DistIter<D, R, T>

`impl<D, R, T> Iterator for DistIter<D, R, T> where
D: Distribution<T>,
R: Rng, type Item = T;`
`fn sample_iter<R>(self, rng: R) -> DistIter<Self, R, T> where
R: Rng,
Self: Sized,` [src]

### `impl Distribution<u8> for Standard` [src]

#### `fn sample<R: Rng + ?Sized>(&self, rng: &mut R) -> u8` [src]

####
ⓘImportant traits for DistIter<D, R, T>

### Important traits for DistIter<D, R, T>

`impl<D, R, T> Iterator for DistIter<D, R, T> where
D: Distribution<T>,
R: Rng, type Item = T;`
`fn sample_iter<R>(self, rng: R) -> DistIter<Self, R, T> where
R: Rng,
Self: Sized,` [src]

### `impl Distribution<()> for Standard` [src]

#### `fn sample<R: Rng + ?Sized>(&self, _: &mut R)` [src]

####
ⓘImportant traits for DistIter<D, R, T>

### Important traits for DistIter<D, R, T>

`impl<D, R, T> Iterator for DistIter<D, R, T> where
D: Distribution<T>,
R: Rng, type Item = T;`
`fn sample_iter<R>(self, rng: R) -> DistIter<Self, R, T> where
R: Rng,
Self: Sized,` [src]

### `impl Distribution<usize> for Standard` [src]

#### `fn sample<R: Rng + ?Sized>(&self, rng: &mut R) -> usize` [src]

####
ⓘImportant traits for DistIter<D, R, T>

### Important traits for DistIter<D, R, T>

`impl<D, R, T> Iterator for DistIter<D, R, T> where
D: Distribution<T>,
R: Rng, type Item = T;`
`fn sample_iter<R>(self, rng: R) -> DistIter<Self, R, T> where
R: Rng,
Self: Sized,` [src]

### `impl Distribution<Vec<f64>> for Dirichlet` [src]

#### `fn sample<R: Rng + ?Sized>(&self, rng: &mut R) -> Vec<f64>` [src]

####
ⓘImportant traits for DistIter<D, R, T>

### Important traits for DistIter<D, R, T>

`impl<D, R, T> Iterator for DistIter<D, R, T> where
D: Distribution<T>,
R: Rng, type Item = T;`
`fn sample_iter<R>(self, rng: R) -> DistIter<Self, R, T> where
R: Rng,
Self: Sized,` [src]

### `impl Distribution<NonZeroU128> for Standard` [src]

#### `fn sample<R: Rng + ?Sized>(&self, rng: &mut R) -> NonZeroU128` [src]

####
ⓘImportant traits for DistIter<D, R, T>

### Important traits for DistIter<D, R, T>

`impl<D, R, T> Iterator for DistIter<D, R, T> where
D: Distribution<T>,
R: Rng, type Item = T;`
`fn sample_iter<R>(self, rng: R) -> DistIter<Self, R, T> where
R: Rng,
Self: Sized,` [src]

### `impl Distribution<NonZeroU16> for Standard` [src]

#### `fn sample<R: Rng + ?Sized>(&self, rng: &mut R) -> NonZeroU16` [src]

####
ⓘImportant traits for DistIter<D, R, T>

### Important traits for DistIter<D, R, T>

`impl<D, R, T> Iterator for DistIter<D, R, T> where
D: Distribution<T>,
R: Rng, type Item = T;`
`fn sample_iter<R>(self, rng: R) -> DistIter<Self, R, T> where
R: Rng,
Self: Sized,` [src]

### `impl Distribution<NonZeroU32> for Standard` [src]

#### `fn sample<R: Rng + ?Sized>(&self, rng: &mut R) -> NonZeroU32` [src]

####
ⓘImportant traits for DistIter<D, R, T>

### Important traits for DistIter<D, R, T>

`impl<D, R, T> Iterator for DistIter<D, R, T> where
D: Distribution<T>,
R: Rng, type Item = T;`
`fn sample_iter<R>(self, rng: R) -> DistIter<Self, R, T> where
R: Rng,
Self: Sized,` [src]

### `impl Distribution<NonZeroU64> for Standard` [src]

#### `fn sample<R: Rng + ?Sized>(&self, rng: &mut R) -> NonZeroU64` [src]

####
ⓘImportant traits for DistIter<D, R, T>

### Important traits for DistIter<D, R, T>

`impl<D, R, T> Iterator for DistIter<D, R, T> where
D: Distribution<T>,
R: Rng, type Item = T;`
`fn sample_iter<R>(self, rng: R) -> DistIter<Self, R, T> where
R: Rng,
Self: Sized,` [src]

### `impl Distribution<NonZeroU8> for Standard` [src]

#### `fn sample<R: Rng + ?Sized>(&self, rng: &mut R) -> NonZeroU8` [src]

####
ⓘImportant traits for DistIter<D, R, T>

### Important traits for DistIter<D, R, T>

`impl<D, R, T> Iterator for DistIter<D, R, T> where
D: Distribution<T>,
R: Rng, type Item = T;`
`fn sample_iter<R>(self, rng: R) -> DistIter<Self, R, T> where
R: Rng,
Self: Sized,` [src]

### `impl Distribution<NonZeroUsize> for Standard` [src]

#### `fn sample<R: Rng + ?Sized>(&self, rng: &mut R) -> NonZeroUsize` [src]

####
ⓘImportant traits for DistIter<D, R, T>

### Important traits for DistIter<D, R, T>

`impl<D, R, T> Iterator for DistIter<D, R, T> where
D: Distribution<T>,
R: Rng, type Item = T;`
`fn sample_iter<R>(self, rng: R) -> DistIter<Self, R, T> where
R: Rng,
Self: Sized,` [src]

### `impl<A> Distribution<(A,)> for Standard where
Standard: Distribution<A>,` [src]

#### `fn sample<R: Rng + ?Sized>(&self, _rng: &mut R) -> (A,)` [src]

####
ⓘImportant traits for DistIter<D, R, T>

### Important traits for DistIter<D, R, T>

`impl<D, R, T> Iterator for DistIter<D, R, T> where
D: Distribution<T>,
R: Rng, type Item = T;`
`fn sample_iter<R>(self, rng: R) -> DistIter<Self, R, T> where
R: Rng,
Self: Sized,` [src]

### `impl<A, B> Distribution<(A, B)> for Standard where
Standard: Distribution<A>,
Standard: Distribution<B>,` [src]

#### `fn sample<R: Rng + ?Sized>(&self, _rng: &mut R) -> (A, B)` [src]

####
ⓘImportant traits for DistIter<D, R, T>

### Important traits for DistIter<D, R, T>

`impl<D, R, T> Iterator for DistIter<D, R, T> where
D: Distribution<T>,
R: Rng, type Item = T;`
`fn sample_iter<R>(self, rng: R) -> DistIter<Self, R, T> where
R: Rng,
Self: Sized,` [src]

### `impl<A, B, C> Distribution<(A, B, C)> for Standard where
Standard: Distribution<A>,
Standard: Distribution<B>,
Standard: Distribution<C>,` [src]

#### `fn sample<R: Rng + ?Sized>(&self, _rng: &mut R) -> (A, B, C)` [src]

####
ⓘImportant traits for DistIter<D, R, T>

### Important traits for DistIter<D, R, T>

`impl<D, R, T> Iterator for DistIter<D, R, T> where
D: Distribution<T>,
R: Rng, type Item = T;`
`fn sample_iter<R>(self, rng: R) -> DistIter<Self, R, T> where
R: Rng,
Self: Sized,` [src]

### `impl<A, B, C, D> Distribution<(A, B, C, D)> for Standard where
Standard: Distribution<A>,
Standard: Distribution<B>,
Standard: Distribution<C>,
Standard: Distribution<D>,` [src]

#### `fn sample<R: Rng + ?Sized>(&self, _rng: &mut R) -> (A, B, C, D)` [src]

####
ⓘImportant traits for DistIter<D, R, T>

### Important traits for DistIter<D, R, T>

`impl<D, R, T> Iterator for DistIter<D, R, T> where
D: Distribution<T>,
R: Rng, type Item = T;`
`fn sample_iter<R>(self, rng: R) -> DistIter<Self, R, T> where
R: Rng,
Self: Sized,` [src]

### `impl<A, B, C, D, E> Distribution<(A, B, C, D, E)> for Standard where
Standard: Distribution<A>,
Standard: Distribution<B>,
Standard: Distribution<C>,
Standard: Distribution<D>,
Standard: Distribution<E>,` [src]

#### `fn sample<R: Rng + ?Sized>(&self, _rng: &mut R) -> (A, B, C, D, E)` [src]

####
ⓘImportant traits for DistIter<D, R, T>

### Important traits for DistIter<D, R, T>

`impl<D, R, T> Iterator for DistIter<D, R, T> where
D: Distribution<T>,
R: Rng, type Item = T;`
`fn sample_iter<R>(self, rng: R) -> DistIter<Self, R, T> where
R: Rng,
Self: Sized,` [src]

### `impl<A, B, C, D, E, F> Distribution<(A, B, C, D, E, F)> for Standard where
Standard: Distribution<A>,
Standard: Distribution<B>,
Standard: Distribution<C>,
Standard: Distribution<D>,
Standard: Distribution<E>,
Standard: Distribution<F>,` [src]

#### `fn sample<R: Rng + ?Sized>(&self, _rng: &mut R) -> (A, B, C, D, E, F)` [src]

####
ⓘImportant traits for DistIter<D, R, T>

### Important traits for DistIter<D, R, T>

`impl<D, R, T> Iterator for DistIter<D, R, T> where
D: Distribution<T>,
R: Rng, type Item = T;`
`fn sample_iter<R>(self, rng: R) -> DistIter<Self, R, T> where
R: Rng,
Self: Sized,` [src]

### `impl<A, B, C, D, E, F, G> Distribution<(A, B, C, D, E, F, G)> for Standard where
Standard: Distribution<A>,
Standard: Distribution<B>,
Standard: Distribution<C>,
Standard: Distribution<D>,
Standard: Distribution<E>,
Standard: Distribution<F>,
Standard: Distribution<G>,` [src]

#### `fn sample<R: Rng + ?Sized>(&self, _rng: &mut R) -> (A, B, C, D, E, F, G)` [src]

####
ⓘImportant traits for DistIter<D, R, T>

### Important traits for DistIter<D, R, T>

`impl<D, R, T> Iterator for DistIter<D, R, T> where
D: Distribution<T>,
R: Rng, type Item = T;`
`fn sample_iter<R>(self, rng: R) -> DistIter<Self, R, T> where
R: Rng,
Self: Sized,` [src]

### `impl<A, B, C, D, E, F, G, H> Distribution<(A, B, C, D, E, F, G, H)> for Standard where
Standard: Distribution<A>,
Standard: Distribution<B>,
Standard: Distribution<C>,
Standard: Distribution<D>,
Standard: Distribution<E>,
Standard: Distribution<F>,
Standard: Distribution<G>,
Standard: Distribution<H>,` [src]

#### `fn sample<R: Rng + ?Sized>(&self, _rng: &mut R) -> (A, B, C, D, E, F, G, H)` [src]

####
ⓘImportant traits for DistIter<D, R, T>

### Important traits for DistIter<D, R, T>

`impl<D, R, T> Iterator for DistIter<D, R, T> where
D: Distribution<T>,
R: Rng, type Item = T;`
`fn sample_iter<R>(self, rng: R) -> DistIter<Self, R, T> where
R: Rng,
Self: Sized,` [src]

### `impl<A, B, C, D, E, F, G, H, I> Distribution<(A, B, C, D, E, F, G, H, I)> for Standard where
Standard: Distribution<A>,
Standard: Distribution<B>,
Standard: Distribution<C>,
Standard: Distribution<D>,
Standard: Distribution<E>,
Standard: Distribution<F>,
Standard: Distribution<G>,
Standard: Distribution<H>,
Standard: Distribution<I>,` [src]

#### `fn sample<R: Rng + ?Sized>(&self, _rng: &mut R) -> (A, B, C, D, E, F, G, H, I)` [src]

####
ⓘImportant traits for DistIter<D, R, T>

### Important traits for DistIter<D, R, T>

`impl<D, R, T> Iterator for DistIter<D, R, T> where
D: Distribution<T>,
R: Rng, type Item = T;`
`fn sample_iter<R>(self, rng: R) -> DistIter<Self, R, T> where
R: Rng,
Self: Sized,` [src]

### `impl<A, B, C, D, E, F, G, H, I, J> Distribution<(A, B, C, D, E, F, G, H, I, J)> for Standard where
Standard: Distribution<A>,
Standard: Distribution<B>,
Standard: Distribution<C>,
Standard: Distribution<D>,
Standard: Distribution<E>,
Standard: Distribution<F>,
Standard: Distribution<G>,
Standard: Distribution<H>,
Standard: Distribution<I>,
Standard: Distribution<J>,` [src]

#### `fn sample<R: Rng + ?Sized>(
&self,
_rng: &mut R
) -> (A, B, C, D, E, F, G, H, I, J)` [src]

####
ⓘImportant traits for DistIter<D, R, T>

### Important traits for DistIter<D, R, T>

`impl<D, R, T> Iterator for DistIter<D, R, T> where
D: Distribution<T>,
R: Rng, type Item = T;`
`fn sample_iter<R>(self, rng: R) -> DistIter<Self, R, T> where
R: Rng,
Self: Sized,` [src]

### `impl<A, B, C, D, E, F, G, H, I, J, K> Distribution<(A, B, C, D, E, F, G, H, I, J, K)> for Standard where
Standard: Distribution<A>,
Standard: Distribution<B>,
Standard: Distribution<C>,
Standard: Distribution<D>,
Standard: Distribution<E>,
Standard: Distribution<F>,
Standard: Distribution<G>,
Standard: Distribution<H>,
Standard: Distribution<I>,
Standard: Distribution<J>,
Standard: Distribution<K>,` [src]

#### `fn sample<R: Rng + ?Sized>(
&self,
_rng: &mut R
) -> (A, B, C, D, E, F, G, H, I, J, K)` [src]

####
ⓘImportant traits for DistIter<D, R, T>

### Important traits for DistIter<D, R, T>

`impl<D, R, T> Iterator for DistIter<D, R, T> where
D: Distribution<T>,
R: Rng, type Item = T;`
`fn sample_iter<R>(self, rng: R) -> DistIter<Self, R, T> where
R: Rng,
Self: Sized,` [src]

### `impl<A, B, C, D, E, F, G, H, I, J, K, L> Distribution<(A, B, C, D, E, F, G, H, I, J, K, L)> for Standard where
Standard: Distribution<A>,
Standard: Distribution<B>,
Standard: Distribution<C>,
Standard: Distribution<D>,
Standard: Distribution<E>,
Standard: Distribution<F>,
Standard: Distribution<G>,
Standard: Distribution<H>,
Standard: Distribution<I>,
Standard: Distribution<J>,
Standard: Distribution<K>,
Standard: Distribution<L>,` [src]

#### `fn sample<R: Rng + ?Sized>(
&self,
_rng: &mut R
) -> (A, B, C, D, E, F, G, H, I, J, K, L)` [src]

####
ⓘImportant traits for DistIter<D, R, T>

### Important traits for DistIter<D, R, T>

`impl<D, R, T> Iterator for DistIter<D, R, T> where
D: Distribution<T>,
R: Rng, type Item = T;`
`fn sample_iter<R>(self, rng: R) -> DistIter<Self, R, T> where
R: Rng,
Self: Sized,` [src]

### `impl<T> Distribution<Option<T>> for Standard where
Standard: Distribution<T>,` [src]

#### `fn sample<R: Rng + ?Sized>(&self, rng: &mut R) -> Option<T>` [src]

####
ⓘImportant traits for DistIter<D, R, T>

### Important traits for DistIter<D, R, T>

`impl<D, R, T> Iterator for DistIter<D, R, T> where
D: Distribution<T>,
R: Rng, type Item = T;`
`fn sample_iter<R>(self, rng: R) -> DistIter<Self, R, T> where
R: Rng,
Self: Sized,` [src]

### `impl<T> Distribution<[T; 0]> for Standard` [src]

#### `fn sample<R: Rng + ?Sized>(&self, _rng: &mut R) -> [T; 0]` [src]

####
ⓘImportant traits for DistIter<D, R, T>

### Important traits for DistIter<D, R, T>

`impl<D, R, T> Iterator for DistIter<D, R, T> where
D: Distribution<T>,
R: Rng, type Item = T;`
`fn sample_iter<R>(self, rng: R) -> DistIter<Self, R, T> where
R: Rng,
Self: Sized,` [src]

### `impl<T> Distribution<[T; 1]> for Standard where
Standard: Distribution<T>,` [src]

#### `fn sample<R: Rng + ?Sized>(&self, _rng: &mut R) -> [T; 1]` [src]

####
ⓘImportant traits for DistIter<D, R, T>

### Important traits for DistIter<D, R, T>

`impl<D, R, T> Iterator for DistIter<D, R, T> where
D: Distribution<T>,
R: Rng, type Item = T;`
`fn sample_iter<R>(self, rng: R) -> DistIter<Self, R, T> where
R: Rng,
Self: Sized,` [src]

### `impl<T> Distribution<[T; 2]> for Standard where
Standard: Distribution<T>,` [src]

#### `fn sample<R: Rng + ?Sized>(&self, _rng: &mut R) -> [T; 2]` [src]

####
ⓘImportant traits for DistIter<D, R, T>

### Important traits for DistIter<D, R, T>

`impl<D, R, T> Iterator for DistIter<D, R, T> where
D: Distribution<T>,
R: Rng, type Item = T;`
`fn sample_iter<R>(self, rng: R) -> DistIter<Self, R, T> where
R: Rng,
Self: Sized,` [src]

### `impl<T> Distribution<[T; 3]> for Standard where
Standard: Distribution<T>,` [src]

#### `fn sample<R: Rng + ?Sized>(&self, _rng: &mut R) -> [T; 3]` [src]

####
ⓘImportant traits for DistIter<D, R, T>

### Important traits for DistIter<D, R, T>

`impl<D, R, T> Iterator for DistIter<D, R, T> where
D: Distribution<T>,
R: Rng, type Item = T;`
`fn sample_iter<R>(self, rng: R) -> DistIter<Self, R, T> where
R: Rng,
Self: Sized,` [src]

### `impl<T> Distribution<[T; 4]> for Standard where
Standard: Distribution<T>,` [src]

#### `fn sample<R: Rng + ?Sized>(&self, _rng: &mut R) -> [T; 4]` [src]

####
ⓘImportant traits for DistIter<D, R, T>

### Important traits for DistIter<D, R, T>

`impl<D, R, T> Iterator for DistIter<D, R, T> where
D: Distribution<T>,
R: Rng, type Item = T;`
`fn sample_iter<R>(self, rng: R) -> DistIter<Self, R, T> where
R: Rng,
Self: Sized,` [src]

### `impl<T> Distribution<[T; 5]> for Standard where
Standard: Distribution<T>,` [src]

#### `fn sample<R: Rng + ?Sized>(&self, _rng: &mut R) -> [T; 5]` [src]

####
ⓘImportant traits for DistIter<D, R, T>

### Important traits for DistIter<D, R, T>

`impl<D, R, T> Iterator for DistIter<D, R, T> where
D: Distribution<T>,
R: Rng, type Item = T;`
`fn sample_iter<R>(self, rng: R) -> DistIter<Self, R, T> where
R: Rng,
Self: Sized,` [src]

### `impl<T> Distribution<[T; 6]> for Standard where
Standard: Distribution<T>,` [src]

#### `fn sample<R: Rng + ?Sized>(&self, _rng: &mut R) -> [T; 6]` [src]

####
ⓘImportant traits for DistIter<D, R, T>

### Important traits for DistIter<D, R, T>

`impl<D, R, T> Iterator for DistIter<D, R, T> where
D: Distribution<T>,
R: Rng, type Item = T;`
`fn sample_iter<R>(self, rng: R) -> DistIter<Self, R, T> where
R: Rng,
Self: Sized,` [src]

### `impl<T> Distribution<[T; 7]> for Standard where
Standard: Distribution<T>,` [src]

#### `fn sample<R: Rng + ?Sized>(&self, _rng: &mut R) -> [T; 7]` [src]

####
ⓘImportant traits for DistIter<D, R, T>

### Important traits for DistIter<D, R, T>

`impl<D, R, T> Iterator for DistIter<D, R, T> where
D: Distribution<T>,
R: Rng, type Item = T;`
`fn sample_iter<R>(self, rng: R) -> DistIter<Self, R, T> where
R: Rng,
Self: Sized,` [src]

### `impl<T> Distribution<[T; 8]> for Standard where
Standard: Distribution<T>,` [src]

#### `fn sample<R: Rng + ?Sized>(&self, _rng: &mut R) -> [T; 8]` [src]

####
ⓘImportant traits for DistIter<D, R, T>

### Important traits for DistIter<D, R, T>

`impl<D, R, T> Iterator for DistIter<D, R, T> where
D: Distribution<T>,
R: Rng, type Item = T;`
`fn sample_iter<R>(self, rng: R) -> DistIter<Self, R, T> where
R: Rng,
Self: Sized,` [src]

### `impl<T> Distribution<[T; 9]> for Standard where
Standard: Distribution<T>,` [src]

#### `fn sample<R: Rng + ?Sized>(&self, _rng: &mut R) -> [T; 9]` [src]

####
ⓘImportant traits for DistIter<D, R, T>

### Important traits for DistIter<D, R, T>

`impl<D, R, T> Iterator for DistIter<D, R, T> where
D: Distribution<T>,
R: Rng, type Item = T;`
`fn sample_iter<R>(self, rng: R) -> DistIter<Self, R, T> where
R: Rng,
Self: Sized,` [src]

### `impl<T> Distribution<[T; 10]> for Standard where
Standard: Distribution<T>,` [src]

#### `fn sample<R: Rng + ?Sized>(&self, _rng: &mut R) -> [T; 10]` [src]

####
ⓘImportant traits for DistIter<D, R, T>

### Important traits for DistIter<D, R, T>

`impl<D, R, T> Iterator for DistIter<D, R, T> where
D: Distribution<T>,
R: Rng, type Item = T;`
`fn sample_iter<R>(self, rng: R) -> DistIter<Self, R, T> where
R: Rng,
Self: Sized,` [src]

### `impl<T> Distribution<[T; 11]> for Standard where
Standard: Distribution<T>,` [src]

#### `fn sample<R: Rng + ?Sized>(&self, _rng: &mut R) -> [T; 11]` [src]

####
ⓘImportant traits for DistIter<D, R, T>

### Important traits for DistIter<D, R, T>

`impl<D, R, T> Iterator for DistIter<D, R, T> where
D: Distribution<T>,
R: Rng, type Item = T;`
`fn sample_iter<R>(self, rng: R) -> DistIter<Self, R, T> where
R: Rng,
Self: Sized,` [src]

### `impl<T> Distribution<[T; 12]> for Standard where
Standard: Distribution<T>,` [src]

#### `fn sample<R: Rng + ?Sized>(&self, _rng: &mut R) -> [T; 12]` [src]

####
ⓘImportant traits for DistIter<D, R, T>

### Important traits for DistIter<D, R, T>

`impl<D, R, T> Iterator for DistIter<D, R, T> where
D: Distribution<T>,
R: Rng, type Item = T;`
`fn sample_iter<R>(self, rng: R) -> DistIter<Self, R, T> where
R: Rng,
Self: Sized,` [src]

### `impl<T> Distribution<[T; 13]> for Standard where
Standard: Distribution<T>,` [src]

#### `fn sample<R: Rng + ?Sized>(&self, _rng: &mut R) -> [T; 13]` [src]

####
ⓘImportant traits for DistIter<D, R, T>

### Important traits for DistIter<D, R, T>

`impl<D, R, T> Iterator for DistIter<D, R, T> where
D: Distribution<T>,
R: Rng, type Item = T;`
`fn sample_iter<R>(self, rng: R) -> DistIter<Self, R, T> where
R: Rng,
Self: Sized,` [src]

### `impl<T> Distribution<[T; 14]> for Standard where
Standard: Distribution<T>,` [src]

#### `fn sample<R: Rng + ?Sized>(&self, _rng: &mut R) -> [T; 14]` [src]

####
ⓘImportant traits for DistIter<D, R, T>

### Important traits for DistIter<D, R, T>

`impl<D, R, T> Iterator for DistIter<D, R, T> where
D: Distribution<T>,
R: Rng, type Item = T;`
`fn sample_iter<R>(self, rng: R) -> DistIter<Self, R, T> where
R: Rng,
Self: Sized,` [src]

### `impl<T> Distribution<[T; 15]> for Standard where
Standard: Distribution<T>,` [src]

#### `fn sample<R: Rng + ?Sized>(&self, _rng: &mut R) -> [T; 15]` [src]

####
ⓘImportant traits for DistIter<D, R, T>

### Important traits for DistIter<D, R, T>

`impl<D, R, T> Iterator for DistIter<D, R, T> where
D: Distribution<T>,
R: Rng, type Item = T;`
`fn sample_iter<R>(self, rng: R) -> DistIter<Self, R, T> where
R: Rng,
Self: Sized,` [src]

### `impl<T> Distribution<[T; 16]> for Standard where
Standard: Distribution<T>,` [src]

#### `fn sample<R: Rng + ?Sized>(&self, _rng: &mut R) -> [T; 16]` [src]

####
ⓘImportant traits for DistIter<D, R, T>

### Important traits for DistIter<D, R, T>

`impl<D, R, T> Iterator for DistIter<D, R, T> where
D: Distribution<T>,
R: Rng, type Item = T;`
`fn sample_iter<R>(self, rng: R) -> DistIter<Self, R, T> where
R: Rng,
Self: Sized,` [src]

### `impl<T> Distribution<[T; 17]> for Standard where
Standard: Distribution<T>,` [src]

#### `fn sample<R: Rng + ?Sized>(&self, _rng: &mut R) -> [T; 17]` [src]

####
ⓘImportant traits for DistIter<D, R, T>

### Important traits for DistIter<D, R, T>

`impl<D, R, T> Iterator for DistIter<D, R, T> where
D: Distribution<T>,
R: Rng, type Item = T;`
`fn sample_iter<R>(self, rng: R) -> DistIter<Self, R, T> where
R: Rng,
Self: Sized,` [src]

### `impl<T> Distribution<[T; 18]> for Standard where
Standard: Distribution<T>,` [src]

#### `fn sample<R: Rng + ?Sized>(&self, _rng: &mut R) -> [T; 18]` [src]

####
ⓘImportant traits for DistIter<D, R, T>

### Important traits for DistIter<D, R, T>

`impl<D, R, T> Iterator for DistIter<D, R, T> where
D: Distribution<T>,
R: Rng, type Item = T;`
`fn sample_iter<R>(self, rng: R) -> DistIter<Self, R, T> where
R: Rng,
Self: Sized,` [src]

### `impl<T> Distribution<[T; 19]> for Standard where
Standard: Distribution<T>,` [src]

#### `fn sample<R: Rng + ?Sized>(&self, _rng: &mut R) -> [T; 19]` [src]

####
ⓘImportant traits for DistIter<D, R, T>

### Important traits for DistIter<D, R, T>

`impl<D, R, T> Iterator for DistIter<D, R, T> where
D: Distribution<T>,
R: Rng, type Item = T;`
`fn sample_iter<R>(self, rng: R) -> DistIter<Self, R, T> where
R: Rng,
Self: Sized,` [src]

### `impl<T> Distribution<[T; 20]> for Standard where
Standard: Distribution<T>,` [src]

#### `fn sample<R: Rng + ?Sized>(&self, _rng: &mut R) -> [T; 20]` [src]

####
ⓘImportant traits for DistIter<D, R, T>

### Important traits for DistIter<D, R, T>

`impl<D, R, T> Iterator for DistIter<D, R, T> where
D: Distribution<T>,
R: Rng, type Item = T;`
`fn sample_iter<R>(self, rng: R) -> DistIter<Self, R, T> where
R: Rng,
Self: Sized,` [src]

### `impl<T> Distribution<[T; 21]> for Standard where
Standard: Distribution<T>,` [src]

#### `fn sample<R: Rng + ?Sized>(&self, _rng: &mut R) -> [T; 21]` [src]

####
ⓘImportant traits for DistIter<D, R, T>

### Important traits for DistIter<D, R, T>

`impl<D, R, T> Iterator for DistIter<D, R, T> where
D: Distribution<T>,
R: Rng, type Item = T;`
`fn sample_iter<R>(self, rng: R) -> DistIter<Self, R, T> where
R: Rng,
Self: Sized,` [src]

### `impl<T> Distribution<[T; 22]> for Standard where
Standard: Distribution<T>,` [src]

#### `fn sample<R: Rng + ?Sized>(&self, _rng: &mut R) -> [T; 22]` [src]

####
ⓘImportant traits for DistIter<D, R, T>

### Important traits for DistIter<D, R, T>

`impl<D, R, T> Iterator for DistIter<D, R, T> where
D: Distribution<T>,
R: Rng, type Item = T;`
`fn sample_iter<R>(self, rng: R) -> DistIter<Self, R, T> where
R: Rng,
Self: Sized,` [src]

### `impl<T> Distribution<[T; 23]> for Standard where
Standard: Distribution<T>,` [src]

#### `fn sample<R: Rng + ?Sized>(&self, _rng: &mut R) -> [T; 23]` [src]

####
ⓘImportant traits for DistIter<D, R, T>

### Important traits for DistIter<D, R, T>

`impl<D, R, T> Iterator for DistIter<D, R, T> where
D: Distribution<T>,
R: Rng, type Item = T;`
`fn sample_iter<R>(self, rng: R) -> DistIter<Self, R, T> where
R: Rng,
Self: Sized,` [src]

### `impl<T> Distribution<[T; 24]> for Standard where
Standard: Distribution<T>,` [src]

#### `fn sample<R: Rng + ?Sized>(&self, _rng: &mut R) -> [T; 24]` [src]

####
ⓘImportant traits for DistIter<D, R, T>

### Important traits for DistIter<D, R, T>

`impl<D, R, T> Iterator for DistIter<D, R, T> where
D: Distribution<T>,
R: Rng, type Item = T;`
`fn sample_iter<R>(self, rng: R) -> DistIter<Self, R, T> where
R: Rng,
Self: Sized,` [src]

### `impl<T> Distribution<[T; 25]> for Standard where
Standard: Distribution<T>,` [src]

#### `fn sample<R: Rng + ?Sized>(&self, _rng: &mut R) -> [T; 25]` [src]

####
ⓘImportant traits for DistIter<D, R, T>

### Important traits for DistIter<D, R, T>

`impl<D, R, T> Iterator for DistIter<D, R, T> where
D: Distribution<T>,
R: Rng, type Item = T;`
`fn sample_iter<R>(self, rng: R) -> DistIter<Self, R, T> where
R: Rng,
Self: Sized,` [src]

### `impl<T> Distribution<[T; 26]> for Standard where
Standard: Distribution<T>,` [src]

#### `fn sample<R: Rng + ?Sized>(&self, _rng: &mut R) -> [T; 26]` [src]

####
ⓘImportant traits for DistIter<D, R, T>

### Important traits for DistIter<D, R, T>

`impl<D, R, T> Iterator for DistIter<D, R, T> where
D: Distribution<T>,
R: Rng, type Item = T;`
`fn sample_iter<R>(self, rng: R) -> DistIter<Self, R, T> where
R: Rng,
Self: Sized,` [src]

### `impl<T> Distribution<[T; 27]> for Standard where
Standard: Distribution<T>,` [src]

#### `fn sample<R: Rng + ?Sized>(&self, _rng: &mut R) -> [T; 27]` [src]

####
ⓘImportant traits for DistIter<D, R, T>

### Important traits for DistIter<D, R, T>

`impl<D, R, T> Iterator for DistIter<D, R, T> where
D: Distribution<T>,
R: Rng, type Item = T;`
`fn sample_iter<R>(self, rng: R) -> DistIter<Self, R, T> where
R: Rng,
Self: Sized,` [src]

### `impl<T> Distribution<[T; 28]> for Standard where
Standard: Distribution<T>,` [src]

#### `fn sample<R: Rng + ?Sized>(&self, _rng: &mut R) -> [T; 28]` [src]

####
ⓘImportant traits for DistIter<D, R, T>

### Important traits for DistIter<D, R, T>

`impl<D, R, T> Iterator for DistIter<D, R, T> where
D: Distribution<T>,
R: Rng, type Item = T;`
`fn sample_iter<R>(self, rng: R) -> DistIter<Self, R, T> where
R: Rng,
Self: Sized,` [src]

### `impl<T> Distribution<[T; 29]> for Standard where
Standard: Distribution<T>,` [src]

#### `fn sample<R: Rng + ?Sized>(&self, _rng: &mut R) -> [T; 29]` [src]

####
ⓘImportant traits for DistIter<D, R, T>

### Important traits for DistIter<D, R, T>

`impl<D, R, T> Iterator for DistIter<D, R, T> where
D: Distribution<T>,
R: Rng, type Item = T;`
`fn sample_iter<R>(self, rng: R) -> DistIter<Self, R, T> where
R: Rng,
Self: Sized,` [src]

### `impl<T> Distribution<[T; 30]> for Standard where
Standard: Distribution<T>,` [src]

#### `fn sample<R: Rng + ?Sized>(&self, _rng: &mut R) -> [T; 30]` [src]

####
ⓘImportant traits for DistIter<D, R, T>

### Important traits for DistIter<D, R, T>

`impl<D, R, T> Iterator for DistIter<D, R, T> where
D: Distribution<T>,
R: Rng, type Item = T;`
`fn sample_iter<R>(self, rng: R) -> DistIter<Self, R, T> where
R: Rng,
Self: Sized,` [src]

### `impl<T> Distribution<[T; 31]> for Standard where
Standard: Distribution<T>,` [src]

#### `fn sample<R: Rng + ?Sized>(&self, _rng: &mut R) -> [T; 31]` [src]

####
ⓘImportant traits for DistIter<D, R, T>

### Important traits for DistIter<D, R, T>

`impl<D, R, T> Iterator for DistIter<D, R, T> where
D: Distribution<T>,
R: Rng, type Item = T;`
`fn sample_iter<R>(self, rng: R) -> DistIter<Self, R, T> where
R: Rng,
Self: Sized,` [src]

### `impl<T> Distribution<[T; 32]> for Standard where
Standard: Distribution<T>,` [src]

#### `fn sample<R: Rng + ?Sized>(&self, _rng: &mut R) -> [T; 32]` [src]

####
ⓘImportant traits for DistIter<D, R, T>

### Important traits for DistIter<D, R, T>

`impl<D, R, T> Iterator for DistIter<D, R, T> where
D: Distribution<T>,
R: Rng, type Item = T;`
`fn sample_iter<R>(self, rng: R) -> DistIter<Self, R, T> where
R: Rng,
Self: Sized,` [src]

### `impl<T> Distribution<Wrapping<T>> for Standard where
Standard: Distribution<T>,` [src]

#### `fn sample<R: Rng + ?Sized>(&self, rng: &mut R) -> Wrapping<T>` [src]

####
ⓘImportant traits for DistIter<D, R, T>

### Important traits for DistIter<D, R, T>

`impl<D, R, T> Iterator for DistIter<D, R, T> where
D: Distribution<T>,
R: Rng, type Item = T;`
`fn sample_iter<R>(self, rng: R) -> DistIter<Self, R, T> where
R: Rng,
Self: Sized,` [src]

### `impl<W: Weight> Distribution<usize> for rand::distributions::weighted::alias_method::WeightedIndex<W>` [src]

#### `fn sample<R: Rng + ?Sized>(&self, rng: &mut R) -> usize` [src]

####
ⓘImportant traits for DistIter<D, R, T>

### Important traits for DistIter<D, R, T>

`impl<D, R, T> Iterator for DistIter<D, R, T> where
D: Distribution<T>,
R: Rng, type Item = T;`
`fn sample_iter<R>(self, rng: R) -> DistIter<Self, R, T> where
R: Rng,
Self: Sized,` [src]

### `impl<X> Distribution<usize> for rand::distributions::weighted::WeightedIndex<X> where
X: SampleUniform + PartialOrd,` [src]

#### `fn sample<R: Rng + ?Sized>(&self, rng: &mut R) -> usize` [src]

####
ⓘImportant traits for DistIter<D, R, T>

### Important traits for DistIter<D, R, T>

`impl<D, R, T> Iterator for DistIter<D, R, T> where
D: Distribution<T>,
R: Rng, type Item = T;`
`fn sample_iter<R>(self, rng: R) -> DistIter<Self, R, T> where
R: Rng,
Self: Sized,` [src]

### `impl<X: SampleUniform> Distribution<X> for Uniform<X>` [src]

#### `fn sample<R: Rng + ?Sized>(&self, rng: &mut R) -> X` [src]

####
ⓘImportant traits for DistIter<D, R, T>

### Important traits for DistIter<D, R, T>

`impl<D, R, T> Iterator for DistIter<D, R, T> where
D: Distribution<T>,
R: Rng, type Item = T;`
`fn sample_iter<R>(self, rng: R) -> DistIter<Self, R, T> where
R: Rng,
Self: Sized,` [src]

Loading content...

# Help

## Keyboard Shortcuts

`?`
  Show this help dialog
`S`
  Focus the search field
`↑`
  Move up in search results
`↓`
  Move down in search results
`↹`
  Switch tab
`⏎`
  Go to active search result
`+`
  Expand all sections
`-`
  Collapse all sections

## Search Tricks

Prefix searches with a type followed by a colon (e.g., `fn:`) to restrict the search to a given type.

Accepted types are: `fn`, `mod`, `struct`, `enum`, `trait`, `type`, `macro`, and `const`.

Search functions by type signature (e.g., `vec -> usize` or `* -> vec`)

Search multiple things at once by splitting your query with comma (e.g., `str,u8` or `String,struct:Vec,test`)