pub struct RandomUtil;
Implementations§
Source§impl RandomUtil
impl RandomUtil
Sourcepub fn random_int(min: i32, max: i32) -> i32
pub fn random_int(min: i32, max: i32) -> i32
Sourcepub fn random_float(min: f64, max: f64) -> f64
pub fn random_float(min: f64, max: f64) -> f64
Sourcepub fn random_bool() -> bool
pub fn random_bool() -> bool
Sourcepub fn random_char() -> char
pub fn random_char() -> char
Auto Trait Implementations§
impl Freeze for RandomUtil
impl RefUnwindSafe for RandomUtil
impl Send for RandomUtil
impl Sync for RandomUtil
impl Unpin for RandomUtil
impl UnwindSafe for RandomUtil
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