Struct random::Xorshift128Plus [] [src]

pub struct Xorshift128Plus(_, _);

An instance of the Xorshift128+ algorithm.

References

  1. Sebastiano Vigna, “Further Scramblings of Marsaglia’s Xorshift Generators,” CoRR, 2014.

  2. https://en.wikipedia.org/wiki/Xorshift#xorshift.2B

Methods

impl Xorshift128Plus
[src]

Create an instance of the algorithm.

At least one bit of the seed should be one.

Trait Implementations

impl Clone for Xorshift128Plus
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Copy for Xorshift128Plus
[src]

impl Source for Xorshift128Plus
[src]

Read u64 uniformly distributed over {0, 1, …, u64::MAX}.

Read f64 uniformly distributed over [0, 1].

Read a random value.

Read a sequence of random values.