pub struct StandardRng { /* private fields */ }Expand description
Standard pseudo-random number generator
Implementations§
Trait Implementations§
Source§impl Default for StandardRng
impl Default for StandardRng
Source§impl RandomNumberGenerator for StandardRng
impl RandomNumberGenerator for StandardRng
Source§fn generate_normal(&mut self) -> f64
fn generate_normal(&mut self) -> f64
Generate a standard normal random number
Auto Trait Implementations§
impl Freeze for StandardRng
impl !RefUnwindSafe for StandardRng
impl !Send for StandardRng
impl !Sync for StandardRng
impl Unpin for StandardRng
impl !UnwindSafe for StandardRng
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> 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