Struct random::Default [] [src]

pub struct Default(_);

The default source, which is the Xorshift128+ algorithm.

Methods

impl Default
[src]

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

Seed the source.

At least one bit of the seed should be nonzero.

Trait Implementations

impl Source for Default
[src]

fn read_u64(&mut self) -> u64

Read the next u64.

fn read_f64(&mut self) -> f64

Read the next f64.

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

Read the next quantity.

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

Read a sequence of quantities.