Struct pcg_rand::Pcg32Basic[][src]

pub struct Pcg32Basic { /* fields omitted */ }

A low overhead very simple PCG impementation

This is mostly useful for demonstrating how PCG works. If you want better statistical performance you should use one of the predefined types like Pcg32.

Implementations

impl Pcg32Basic[src]

pub fn new_unseeded() -> Pcg32Basic[src]

Creates a new PCG without specifying a seed. WARNING: Every PCG created with this method will produce the same output. In most cases a seeded PCG will be more useful, please check the references for rand::SeedableRng and rand::FromEntropy for methods to seed a PCG.

Trait Implementations

impl RngCore for Pcg32Basic[src]

impl SeedableRng for Pcg32Basic[src]

type Seed = PcgSeeder<u64>

Seed type, which is restricted to types mutably-dereferencable as u8 arrays (we recommend [u8; N] for some N). Read more

Auto Trait Implementations

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<R> Rng for R where
    R: RngCore + ?Sized
[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<V, T> VZip<V> for T where
    V: MultiLane<T>,