pub struct Xoshiro256PlusPlus { /* private fields */ }Expand description
xoshiro256++
High-quality, fast pseudorandom number generator suitable for Monte Carlo simulation and numerical work.
NOT cryptographically secure.
Reference: David Blackman & Sebastiano Vigna https://prng.di.unimi.it/xoshiro256plusplus.c
Implementations§
Source§impl Xoshiro256PlusPlus
impl Xoshiro256PlusPlus
Sourcepub fn from_array_seed(seed: [u64; 4]) -> Result<Self, ErrorsJSL>
pub fn from_array_seed(seed: [u64; 4]) -> Result<Self, ErrorsJSL>
Create a new generator from a 256-bit seed (4 u64 values).
Sourcepub fn from_random_seed() -> Self
pub fn from_random_seed() -> Self
Seed using the current system time (not recommended for reproducibility).
Trait Implementations§
Source§impl Clone for Xoshiro256PlusPlus
impl Clone for Xoshiro256PlusPlus
Source§impl Debug for Xoshiro256PlusPlus
impl Debug for Xoshiro256PlusPlus
Auto Trait Implementations§
impl Freeze for Xoshiro256PlusPlus
impl RefUnwindSafe for Xoshiro256PlusPlus
impl Send for Xoshiro256PlusPlus
impl Sync for Xoshiro256PlusPlus
impl Unpin for Xoshiro256PlusPlus
impl UnsafeUnpin for Xoshiro256PlusPlus
impl UnwindSafe for Xoshiro256PlusPlus
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