Struct seeded_random::Random
source · pub struct Random { /* private fields */ }
Expand description
The main RNG data structure.
Implementations§
source§impl Random
impl Random
sourcepub fn gen<T>(&self) -> Twhere
Standard: Distribution<T>,
pub fn gen<T>(&self) -> Twhere
Standard: Distribution<T>,
Function that delegates to rand::Rng::gen()
sourcepub fn alphanumeric(&self, length: usize) -> String
pub fn alphanumeric(&self, length: usize) -> String
Utility function to generate a new String consisting only of numbers and letters.
Trait Implementations§
Auto Trait Implementations§
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