[−][src]Struct doryen_extra::random::Random
pseudorandom number generator toolkit
Fields
distribution: Distribution
Decides the distribution used for generating random numbers
Implementations
impl Random<MersenneTwister>
[src]
pub fn new_mt() -> Self
[src]
Returns a new Random
using the Mersenne Twister algorithm.
pub fn new_mt_from_seed(seed: u32) -> Self
[src]
Returns a new Random
using the Mersenne Twister algorithm, seeded with the given seed
.
impl Random<ComplementaryMultiplyWithCarry>
[src]
pub fn new_cmwc() -> Self
[src]
Returns a new Random
using the Complementary Multiply With Carry algorithm.
pub fn new_cmwc_from_seed(seed: u32) -> Self
[src]
Returns a new Random
using the Complementary Multiply With Carry algorithm,
seeded with the given seed
.
Trait Implementations
impl<A: Clone + Algorithm> Clone for Random<A>
[src]
impl<A: Debug + Algorithm> Debug for Random<A>
[src]
impl<A: Algorithm> Rng for Random<A>
[src]
fn get_i32(&mut self, min: i32, max: i32) -> i32
[src]
fn get_f32(&mut self, min: f32, max: f32) -> f32
[src]
fn get_f64(&mut self, min: f64, max: f64) -> f64
[src]
fn get_i32_mean(&mut self, min: i32, max: i32, mean: i32) -> i32
[src]
fn get_f32_mean(&mut self, min: f32, max: f32, mean: f32) -> f32
[src]
fn get_f64_mean(&mut self, min: f64, max: f64, mean: f64) -> f64
[src]
Auto Trait Implementations
impl<A> RefUnwindSafe for Random<A> where
A: RefUnwindSafe,
A: RefUnwindSafe,
impl<A> Send for Random<A> where
A: Send,
A: Send,
impl<A> Sync for Random<A> where
A: Sync,
A: Sync,
impl<A> Unpin for Random<A> where
A: Unpin,
A: Unpin,
impl<A> UnwindSafe for Random<A> where
A: UnwindSafe,
A: UnwindSafe,
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,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Downcast for T where
T: Any,
T: Any,
fn into_any(self: Box<T>) -> Box<dyn Any + 'static>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any + 'static>
fn as_any(&self) -> &(dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
impl<T> DowncastSync for T where
T: Send + Sync + Any,
T: Send + Sync + Any,
impl<T> Erased for T
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.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
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.
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>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,