[][src]Trait gameprng::prng_traits::PrngAlgorithm

pub trait PrngAlgorithm {
    fn next(&mut self) -> u64;

    fn random_factor(&mut self) -> f32 { ... }
fn chance(&mut self, chance: f32) -> bool { ... } }

Required methods

fn next(&mut self) -> u64

Loading content...

Provided methods

fn random_factor(&mut self) -> f32

fn chance(&mut self, chance: f32) -> bool

Loading content...

Implementors

impl PrngAlgorithm for SplitMix64[src]

impl PrngAlgorithm for XoRoShiRo128Plus[src]

impl PrngAlgorithm for XorShift128Plus[src]

Loading content...