pub struct Xoshiro256 { /* private fields */ }Expand description
xoshiro256** generator.
Implementations§
Source§impl Xoshiro256
impl Xoshiro256
Sourcepub fn seed_from_u64(seed: u64) -> Self
pub fn seed_from_u64(seed: u64) -> Self
Generator seeded from a 64-bit value (state filled by splitmix64, as recommended by the authors of xoshiro).
Sourcepub fn gfortran_put(put: [i32; 8]) -> Self
pub fn gfortran_put(put: [i32; 8]) -> Self
Generator in the state gfortran ≥ 9 reaches after random_seed(put = put) (put has
8 elements; the thesis codes fill it with one value, see Self::gfortran).
Sourcepub fn gfortran(seed: i32) -> Self
pub fn gfortran(seed: i32) -> Self
Generator in the state of the thesis routine random_set(seed), i.e. gfortran’s
random_seed(put = [seed, seed, …]).
Sourcepub fn uniform(&mut self) -> f64
pub fn uniform(&mut self) -> f64
Uniform number in [0, 1) with 53 random bits (identical to gfortran’s
random_number for real(8)).
Trait Implementations§
Source§impl Clone for Xoshiro256
impl Clone for Xoshiro256
Source§fn clone(&self) -> Xoshiro256
fn clone(&self) -> Xoshiro256
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for Xoshiro256
impl Debug for Xoshiro256
impl Eq for Xoshiro256
Source§impl PartialEq for Xoshiro256
impl PartialEq for Xoshiro256
Source§fn eq(&self, other: &Xoshiro256) -> bool
fn eq(&self, other: &Xoshiro256) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for Xoshiro256
Auto Trait Implementations§
impl Freeze for Xoshiro256
impl RefUnwindSafe for Xoshiro256
impl Send for Xoshiro256
impl Sync for Xoshiro256
impl Unpin for Xoshiro256
impl UnsafeUnpin for Xoshiro256
impl UnwindSafe for Xoshiro256
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T, U> Imply<T> for U
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more