Trait pcg_rand::stream::Stream

source ·
pub trait Stream<Itype> {
    fn build(seed: Option<&mut PcgSeeder<Itype>>) -> Self;
    fn increment(&self) -> Itype;
    fn get_stream(&self) -> Itype;

    fn set_stream(&mut self, _stream_seq: Itype) { ... }
}
Expand description

A stream provides the increment to the LCG. This increment should be an odd number or the period of the generator will not be the full size of the state.

Required Methods

Provided Methods

Implementors