The struct that holds all the random state. Can be instanced as many times as you want!
pub fn new_random() -> Self[src]
Initalizes with the time since UNIX_EPOCH.
This function is kinda “unsafe”, race conditions might corrupt the random state. I’d personally write this off as a “feature” since it’s just more noise!
It might be annoying if you’re trying to reproduce bugs tough, so beware.
The random source, spits out random u64s
Spits out a random of whatever.
Spits out a random of whatever. Same as sample, but makes it easier to port from Rand.
type Owned = T
The resulting type after obtaining ownership.
pub fn clone_into(&self, target: &mut T)[src]
type Error = Infallible
The type returned in the event of a conversion error.