Struct mersenne_twister::MT19937_64 [] [src]

pub struct MT19937_64 { /* fields omitted */ }

The 64-bit flavor of the Mersenne Twister pseudorandom number generator.

Methods

impl MT19937_64
[src]

Create a new Mersenne Twister random number generator using the default fixed seed.

Recover the internal state of a Mersenne Twister instance from 312 consecutive outputs of the algorithm.

The returned MT19937_64 is guaranteed to identically reproduce subsequent outputs of the RNG that was sampled.

Panics if the length of the slice is not exactly 312.

Trait Implementations

impl Copy for MT19937_64
[src]

impl SeedableRng<u64> for MT19937_64
[src]

Create a new RNG with the given seed. Read more

Reseed an RNG with the given seed. Read more

impl<'a> SeedableRng<&'a [u64]> for MT19937_64
[src]

Create a new RNG with the given seed. Read more

Reseed an RNG with the given seed. Read more

impl Rng for MT19937_64
[src]

Return the next random u32. Read more

Return the next random u64. Read more

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

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

Fill dest with random data. Read more

Return a random value of a Rand type. Read more

Return an iterator that will yield an infinite number of randomly generated items. Read more

Generate a random value in the range [low, high). Read more

Return a bool with a 1 in n chance of true Read more

Return an iterator of random characters from the set A-Z,a-z,0-9. Read more

Return a random element from values. Read more

Return a mutable pointer to a random element from values. Read more

Shuffle a mutable slice in place. Read more

impl Default for MT19937_64
[src]

Returns the "default value" for a type. Read more

impl Rand for MT19937_64
[src]

Generates a random instance of this type using the specified source of randomness. Read more

impl Clone for MT19937_64
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for MT19937_64
[src]

Formats the value using the given formatter.

impl Eq for MT19937_64
[src]

impl Hash for MT19937_64
[src]

Feeds this value into the given [Hasher]. Read more

Feeds a slice of this type into the given [Hasher]. Read more

impl Ord for MT19937_64
[src]

This method returns an Ordering between self and other. Read more

impl PartialEq for MT19937_64
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl PartialOrd for MT19937_64
[src]

This method returns an ordering between self and other values if one exists. Read more

This method tests less than (for self and other) and is used by the < operator. Read more

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more

This method tests greater than (for self and other) and is used by the > operator. Read more

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more