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]

[src]

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

[src]

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]

[src]

Create a new RNG with the given seed. Read more

[src]

Reseed an RNG with the given seed. Read more

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

[src]

Create a new RNG with the given seed. Read more

[src]

Reseed an RNG with the given seed. Read more

impl Rng for MT19937_64
[src]

[src]

Return the next random u32. Read more

[src]

Return the next random u64. 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

[src]

Fill dest with random data. Read more

[src]

Return a random value of a Rand type. Read more

[src]

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

[src]

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

[src]

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

[src]

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

[src]

Return a random element from values. Read more

[src]

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

[src]

Shuffle a mutable slice in place. Read more

impl Default for MT19937_64
[src]

[src]

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

impl Rand for MT19937_64
[src]

[src]

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

impl Clone for MT19937_64
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for MT19937_64
[src]

[src]

Formats the value using the given formatter.

impl Eq for MT19937_64
[src]

impl Hash for MT19937_64
[src]

[src]

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

1.3.0
[src]

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

impl Ord for MT19937_64
[src]

[src]

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

1.22.0
[src]

Compares and returns the maximum of two values. Read more

1.22.0
[src]

Compares and returns the minimum of two values. Read more

impl PartialEq for MT19937_64
[src]

[src]

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

1.0.0
[src]

This method tests for !=.

impl PartialOrd for MT19937_64
[src]

[src]

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

1.0.0
[src]

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

1.0.0
[src]

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

1.0.0
[src]

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

1.0.0
[src]

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