pub struct RandGen { /* private fields */ }
Expand description
Random number generator based on xoroshiro128.
Requires two internal state variables.
You may prefer SplitMix64 or Rng which only use one u64
as state.
Implementations§
Trait Implementations§
impl Copy for RandGen
impl StructuralPartialEq for RandGen
Auto Trait Implementations§
impl Freeze for RandGen
impl RefUnwindSafe for RandGen
impl Send for RandGen
impl Sync for RandGen
impl Unpin for RandGen
impl UnwindSafe for RandGen
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