[][src]Struct randomize::PCG32

#[repr(C)]pub struct PCG32 { /* fields omitted */ }

A permuted congruential generator with 32 bits of output per step.

Implementations

impl PCG32[src]

pub const fn seed(seed: u64, inc: u64) -> Self[src]

Seed a new generator.

pub fn from_getrandom() -> Self[src]

This is supported on feature="getrandom" only.

Generates a new PCG32 by calling getrandom.

If getrandom fails then you get the default generator.

pub fn next_u32(&mut self) -> u32[src]

Runs the generator once and gets a u32 as output.

pub fn jump(&mut self, delta: u64)[src]

Advances the generator delta steps in log(delta) time.

Trait Implementations

impl Clone for PCG32[src]

impl Debug for PCG32[src]

impl Default for PCG32[src]

impl Eq for PCG32[src]

impl From<[u64; 2]> for PCG32[src]

impl Gen32 for PCG32[src]

impl Hash for PCG32[src]

impl PartialEq<PCG32> for PCG32[src]

impl StructuralEq for PCG32[src]

impl StructuralPartialEq for PCG32[src]

Auto Trait Implementations

impl RefUnwindSafe for PCG32

impl Send for PCG32

impl Sync for PCG32

impl Unpin for PCG32

impl UnwindSafe for PCG32

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.