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.

Methods

impl 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]

Return the next random u32. Read more

Return the next random u64. Read more

Fill dest with random data. Read more

Fill dest entirely with random data. Read more

impl SeedableRng for Pcg32Basic
[src]

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

Create a new PRNG using the given seed. Read more

Create a new PRNG seeded from another Rng. Read more

Auto Trait Implementations

impl Send for Pcg32Basic

impl Sync for Pcg32Basic