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

Implementations

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]

impl Copy for Xorshift128Plus[src]

impl Source for Xorshift128Plus[src]

Auto Trait Implementations

impl RefUnwindSafe for Xorshift128Plus

impl Send for Xorshift128Plus

impl Sync for Xorshift128Plus

impl Unpin for Xorshift128Plus

impl UnwindSafe for Xorshift128Plus

Blanket Implementations

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

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

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

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

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

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

type Owned = T

The resulting type after obtaining ownership.

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.