Struct random::Xorshift128Plus
[−]
[src]
pub struct Xorshift128Plus(_, _);
An instance of the Xorshift128+ algorithm.
References
Sebastiano Vigna, “Further Scramblings of Marsaglia’s Xorshift Generators,” CoRR, 2014.
Methods
impl Xorshift128Plus
[src]
fn new(seed: [u64; 2]) -> Xorshift128Plus
Create an instance of the algorithm.
At least one bit of the seed should be one.
Trait Implementations
impl Clone for Xorshift128Plus
[src]
fn clone(&self) -> Xorshift128Plus
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl Copy for Xorshift128Plus
[src]
impl Source for Xorshift128Plus
[src]
fn read_u64(&mut self) -> u64
Read u64
uniformly distributed over {0, 1, …, u64::MAX}
.
fn read_f64(&mut self) -> f64
Read f64
uniformly distributed over [0, 1]
.
fn read<V>(&mut self) -> V where
Self: Sized,
V: Value,
Self: Sized,
V: Value,
Read a random value.
fn iter<'l, V>(&'l mut self) -> Sequence<'l, Self, V> where
Self: Sized,
V: Value,
Self: Sized,
V: Value,
Read a sequence of random values.