pub struct Pcg32 { /* private fields */ }
Expand description
A PCG32 random number generator.
Implementations§
Source§impl Pcg32
impl Pcg32
Sourcepub const fn new(initstate: u64, initseq: u64) -> Self
pub const fn new(initstate: u64, initseq: u64) -> Self
Initializes a PCG32 generator with two u64
seeds.
The arguments specify the starting state and the output sequence, respectively, for the
constructed generator. You can pass any 64-bit value to each argument, though the most
significant bit of initseq
is ignored. See the pcg32_srandom_r
documentation of the
official library for further details.
Trait Implementations§
impl Eq for Pcg32
impl StructuralPartialEq for Pcg32
Auto Trait Implementations§
impl Freeze for Pcg32
impl RefUnwindSafe for Pcg32
impl Send for Pcg32
impl Sync for Pcg32
impl Unpin for Pcg32
impl UnwindSafe for Pcg32
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