pub struct Prng { /* private fields */ }
Expand description
Simple XorShift64-based pseudo random number generator.
Implementations§
Trait Implementations§
Source§impl Rng for Prng
impl Rng for Prng
Source§fn random_range<T>(&mut self, range: Range<T>) -> Twhere
T: RangeSample,
fn random_range<T>(&mut self, range: Range<T>) -> Twhere
T: RangeSample,
Generate a value uniformly in the given range.
Auto Trait Implementations§
impl Freeze for Prng
impl RefUnwindSafe for Prng
impl Send for Prng
impl Sync for Prng
impl Unpin for Prng
impl UnwindSafe for Prng
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