Trait random::Source [] [src]

pub trait Source {
    fn read(&mut self) -> u64;

    fn next<T>(&mut self) -> T where T: Quantity { ... }
}

A source of randomness.

Required Methods

fn read(&mut self) -> u64

Read the next chunk.

Provided Methods

fn next<T>(&mut self) -> T where T: Quantity

Read the next quantity.

Implementors