[−][src]Struct rand_python::PythonRandom
Implementations
impl PythonRandom
[src]
pub fn new(mt: MersenneTwister) -> PythonRandom
[src]
pub fn random(&mut self) -> f64
[src]
pub fn getrandbits(&mut self, k: u32) -> u64
[src]
pub fn randbelow(&mut self, n: u64) -> u64
[src]
pub fn seed_u32(&mut self, s: u32)
[src]
pub fn expovariate(&mut self, lambda: f64) -> f64
[src]
pub fn shuffle<T>(&mut self, x: &mut [T])
[src]
pub fn randint(&mut self, start: u64, stop: u64) -> u64
[src]
pub fn randrange(&mut self, start: u64, stop: u64) -> u64
[src]
Auto Trait Implementations
impl RefUnwindSafe for PythonRandom
[src]
impl Send for PythonRandom
[src]
impl Sync for PythonRandom
[src]
impl Unpin for PythonRandom
[src]
impl UnwindSafe for PythonRandom
[src]
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,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
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.
pub 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>,