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]
fn clone(&self) -> StdRng
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Debug for StdRng
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl Rng for StdRng
[src]
fn next_u32(&mut self) -> u32
[src]
Return the next random u32
. Read more
fn next_u64(&mut self) -> u64
[src]
Return the next random u64
. Read more
fn fill_bytes(&mut self, dest: &mut [u8])
[src]
Fill dest
with random data. Read more
fn try_fill_bytes(&mut self, dest: &mut [u8]) -> Result<(), Error>
[src]
Fill dest
entirely with random data. Read more
fn next_f32(&mut self) -> f32
[src]
Return the next random f32 selected from the half-open interval [0, 1)
. Read more
fn next_f64(&mut self) -> f64
[src]
Return the next random f64 selected from the half-open interval [0, 1)
. Read more
impl SeedableRng for StdRng
[src]
type Seed = <IsaacWordRng as SeedableRng>::Seed
Seed type, which is restricted to types mutably-dereferencable as u8
arrays (we recommend [u8; N]
for some N
). Read more
fn from_seed(seed: Self::Seed) -> Self
[src]
Create a new PRNG using the given seed. Read more
fn from_rng<R: Rng>(rng: R) -> Result<Self, Error>
[src]
Create a new PRNG seeded from another Rng
. Read more