[][src]Trait srand::Source

pub trait Source {
    fn int64(&mut self) -> i64;
fn uint64(&mut self) -> u64;
fn seed(&mut self, seed: i64); }

A Source represents a source of uniformly-distributed pseudo-random i64 values in the range [0, 1<<63) and u64 values in the range [0, 1<<64).

Required methods

fn int64(&mut self) -> i64

fn uint64(&mut self) -> u64

fn seed(&mut self, seed: i64)

Seed uses the provided seed value to initialize the generator to a deterministic state.

Loading content...

Implementors

impl Source for LockedSource[src]

impl Source for RngSource[src]

Loading content...