Struct vrp_core::utils::DefaultRandom [−][src]
pub struct DefaultRandom { /* fields omitted */ }Expand description
A default random implementation.
Implementations
impl DefaultRandom[src]
impl DefaultRandom[src]pub fn new_with_seed(seed: u64) -> Self[src]
pub fn new_with_seed(seed: u64) -> Self[src]Creates a new instance DefaultRandom with seed.
Trait Implementations
impl Default for DefaultRandom[src]
impl Default for DefaultRandom[src]impl Random for DefaultRandom[src]
impl Random for DefaultRandom[src]fn uniform_int(&self, min: i32, max: i32) -> i32[src]
fn uniform_int(&self, min: i32, max: i32) -> i32[src]Produces integral random value, uniformly distributed on the closed interval [min, max]
fn uniform_real(&self, min: f64, max: f64) -> f64[src]
fn uniform_real(&self, min: f64, max: f64) -> f64[src]Produces real random value, uniformly distributed on the closed interval [min, max)
fn is_head_not_tails(&self) -> bool[src]
fn is_head_not_tails(&self) -> bool[src]Flips a coin and returns true if it is “heads”, false otherwise.
Auto Trait Implementations
impl RefUnwindSafe for DefaultRandom
impl Send for DefaultRandom
impl Sync for DefaultRandom
impl Unpin for DefaultRandom
impl UnwindSafe for DefaultRandom
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]pub fn borrow_mut(&mut self) -> &mut T[src]
pub fn borrow_mut(&mut self) -> &mut T[src]Mutably borrows from an owned value. Read more
impl<T> Pointable for T
impl<T> Pointable for Timpl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,