pub struct Rng { /* private fields */ }
Implementations
sourceimpl Rng
impl Rng
pub fn new(random_vec_seed: &Vec<u8>) -> Self
pub fn rand_u64(&mut self) -> u64
pub fn rand_u32(&mut self) -> u32
pub fn rand_u8(&mut self) -> u8
pub fn rand_u16(&mut self) -> u16
pub fn rand_usize(&mut self) -> usize
pub fn rand_bounded_u32(&mut self, m: u32) -> u32
pub fn rand_bounded_u64(&mut self, m: u64) -> u64
pub fn rand_bounded_usize(&mut self, m: usize) -> usize
pub fn rand_range_u32(&mut self, a: u32, b: u32) -> u32
pub fn rand_range_u64(&mut self, a: u64, b: u64) -> u64
pub fn rand_range_i32(&mut self, a: i32, b: i32) -> i32
pub fn rand_range_i64(&mut self, a: i64, b: i64) -> i64
pub fn rand_f32(&mut self) -> f32
pub fn rand_f64(&mut self) -> f64
pub fn shuffle<T>(&mut self, a: &mut [T])
pub fn fill(&mut self, a: &mut [u8])
Auto Trait Implementations
impl RefUnwindSafe for Rng
impl Send for Rng
impl Sync for Rng
impl Unpin for Rng
impl UnwindSafe for Rng
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more