pub struct GARandomCtx { /* private fields */ }Implementations§
Source§impl GARandomCtx
impl GARandomCtx
pub fn new_unseeded(name: String) -> GARandomCtx
pub fn from_seed(seed: GASeed, name: String) -> GARandomCtx
pub fn gen<T: Rand>(&mut self) -> Twhere
Self: Sized,
pub fn gen_range<T: PartialOrd + SampleRange>(&mut self, low: T, high: T) -> T
pub fn next_u32(&mut self) -> u32
pub fn next_u64(&mut self) -> u64
pub fn next_f32(&mut self) -> f32
pub fn next_f64(&mut self) -> f64
pub fn test_value<T: PartialOrd + Rand>(&mut self, value: T) -> bool
pub fn reseed(&mut self, seed: GASeed)
pub fn reset(&mut self)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for GARandomCtx
impl RefUnwindSafe for GARandomCtx
impl Send for GARandomCtx
impl Sync for GARandomCtx
impl Unpin for GARandomCtx
impl UnwindSafe for GARandomCtx
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