Struct rand::StdRng [] [src]

pub struct StdRng(_);

The standard RNG. This is designed to be efficient on the current platform.

Reproducibility of output from this generator is not required, thus future library versions may use a different internal generator with different output. Further, this generator may not be portable and can produce different output depending on the architecture. If you require reproducible output, use a named RNG, for example ChaChaRng.

Trait Implementations

impl Clone for StdRng
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for StdRng
[src]

[src]

Formats the value using the given formatter. Read more

impl Rng for StdRng
[src]

[src]

Return the next random u32. Read more

[src]

Return the next random u64. Read more

[src]

Fill dest with random data. Read more

[src]

Fill dest entirely with random data. Read more

[src]

Return the next random f32 selected from the half-open interval [0, 1). Read more

[src]

Return the next random f64 selected from the half-open interval [0, 1). Read more

impl SeedableRng for StdRng
[src]

Seed type, which is restricted to types mutably-dereferencable as u8 arrays (we recommend [u8; N] for some N). Read more

[src]

Create a new PRNG using the given seed. Read more

[src]

Create a new PRNG seeded from another Rng. Read more