Struct random::Default [] [src]

pub struct Default(_);

The default source, which is the Xorshift+ algorithm.

Methods

impl Default
[src]

fn seed(self, seed: [u64; 2]) -> Default

Seed the source.

Trait Implementations

impl Source for Default
[src]

fn read(&mut self) -> u64

Return the next raw chunk.

fn take<T: Quantity>(&mut self) -> T where Self: Sized

Return the next quantity.

fn iter<'l, T: Quantity>(&'l mut self) -> Sequence<'l, Self, T> where Self: Sized

Return a sequence of quantities.