Struct probability::prelude::random::Default []

pub struct Default(_);

The default source, which is the Xorshift128+ algorithm.

Methods

impl Default

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

Seed the source.

At least one bit of the seed should be nonzero.

Trait Implementations

impl Clone for Default

fn clone(&self) -> Default

Returns a copy of the value. Read more

fn clone_from(&mut self, source: &Self)
1.0.0

Performs copy-assignment from source. Read more

impl Source for Default

fn read_u64(&mut self) -> u64

Read a random u64. Read more

fn read_f64(&mut self) -> f64

Read a random f64. Read more

fn read<T>(&mut self) -> T where T: Element

Read a random element.

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

Read a sequence of random elements.