pub struct Rand { /* private fields */ }
Implementations
sourceimpl Rand
impl Rand
pub fn init()
pub fn new(seed: u32) -> Rand
pub fn get(&self) -> (u32, u32, u32, u32)
pub fn build(x: u32, y: u32, z: u32, w: u32) -> Rand
pub fn rand(&mut self) -> u32
pub fn shuffle<T>(&mut self, a: &mut [T])
pub fn rand_range(&mut self, a: i32, b: i32) -> i32
pub fn rand_float(&mut self) -> f64
Auto Trait Implementations
impl RefUnwindSafe for Rand
impl Send for Rand
impl Sync for Rand
impl Unpin for Rand
impl UnwindSafe for Rand
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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