pub struct Random { /* private fields */ }Implementations§
Source§impl Random
impl Random
pub fn new(s: u128) -> Random
pub fn rand<T: Randomable>(&self) -> T
pub fn randn<T: Randomable>(&self, n: T) -> T
pub fn rand_range<T: Randomable>(&self, min: T, max: T) -> T
pub fn set_seed(&self, s: u128)
Auto Trait Implementations§
impl !Freeze for Random
impl RefUnwindSafe for Random
impl Send for Random
impl Sync for Random
impl Unpin for Random
impl UnwindSafe for Random
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more