[−][src]Struct nanorand::rand::pcg64::Pcg64
An instance of the Pcg64 random number generator. Seeded from the system entropy generator when available. This generator is NOT cryptographically secure.
Implementations
impl Pcg64
[src]
pub fn new() -> Self
[src]
Create a new Pcg64
instance, seeding from the system's default source of entropy.
pub fn new_seed(seed: u128) -> Self
[src]
Create a new Pcg64
instance, using a provided seed.
Trait Implementations
impl Clone for Pcg64
[src]
pub fn clone(&self) -> Self
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Default for Pcg64
[src]
pub fn default() -> Self
[src]
Create a new Pcg64
instance, seeding from the system's default source of entropy.
impl Display for Pcg64
[src]
impl Drop for Pcg64
[src]
impl RNG for Pcg64
[src]
type Output = [u8; 8]
The byte output that this RNG emits.
pub fn rand(&mut self) -> Self::Output
[src]
pub fn rand_with_seed(_seed: &[u8]) -> Self::Output
[src]
pub fn reseed(&mut self, new_seed: &[u8])
[src]
pub fn generate<R: RandomGen<Self>>(&mut self) -> R
[src]
pub fn fill<R: RandomGen<Self>, A: AsMut<[R]>>(&mut self, target: A)
[src]
pub fn generate_range<R: RandomRange<Self>>(&mut self, lower: R, upper: R) -> R
[src]
pub fn shuffle<I, S: AsMut<[I]>>(&mut self, target: S)
[src]
impl Zeroize for Pcg64
[src]
Auto Trait Implementations
impl RefUnwindSafe for Pcg64
[src]
impl Send for Pcg64
[src]
impl Sync for Pcg64
[src]
impl Unpin for Pcg64
[src]
impl UnwindSafe for Pcg64
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,