[][src]Struct probability::source::Xorshift128Plus

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]

pub fn new(seed: [u64; 2]) -> 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]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl Copy for Xorshift128Plus[src]

impl Source for Xorshift128Plus[src]

fn read_f64(&mut self) -> f64[src]

Read f64 uniformly distributed over [0, 1].

fn read<V>(&mut self) -> V where
    V: Value
[src]

Read a random value.

Important traits for Sequence<'l, S, V>
fn iter<V>(&'l mut self) -> Sequence<'l, Self, V> where
    V: Value
[src]

Read a sequence of random values.

Auto Trait Implementations

Blanket Implementations

impl<T> From<T> for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]