Struct probability::source::Default
source · pub struct Default(_, _);
Expand description
An instance of the Xorshift128+ algorithm.
References
-
Sebastiano Vigna, “Further Scramblings of Marsaglia’s Xorshift Generators,” CoRR, 2014.
-
https://en.wikipedia.org/wiki/Xorshift#xorshift.2B
Implementations§
source§impl Xorshift128Plus
impl Xorshift128Plus
sourcepub fn new(seed: [u64; 2]) -> Xorshift128Plus
pub fn new(seed: [u64; 2]) -> Xorshift128Plus
Create an instance of the algorithm.
At least one bit of the seed should be one.
Trait Implementations§
source§impl Clone for Xorshift128Plus
impl Clone for Xorshift128Plus
source§fn clone(&self) -> Xorshift128Plus
fn clone(&self) -> Xorshift128Plus
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read more