[−][src]Struct gmp::rand::RandState
Implementations
impl RandState
[src]
pub fn new() -> RandState
[src]
pub fn new_mt() -> RandState
[src]
pub fn new_lc_2exp(a: Mpz, c: u64, m2exp: u64) -> RandState
[src]
pub fn new_lc_2exp_size(size: u64) -> RandState
[src]
pub fn seed(&mut self, seed: Mpz)
[src]
pub fn seed_ui(&mut self, seed: u64)
[src]
pub fn urandom(&mut self, n: &Mpz) -> Mpz
[src]
Generate a uniform random integer in the range 0 to n-1, inclusive
pub fn urandom_2exp(&mut self, n: u64) -> Mpz
[src]
Generate a uniformly distributed random integer in the range 0 to 2^n−1, inclusive.
Trait Implementations
impl Clone for RandState
[src]
impl Drop for RandState
[src]
impl Send for RandState
[src]
impl Sync for RandState
[src]
Auto Trait Implementations
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> 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>,