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::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.
sourcepub fn uuid(&self) -> Uuid
pub fn uuid(&self) -> Uuid
Utility function to generate a new uuid::Uuid