Struct gmp::rand::RandState
[−]
[src]
pub struct RandState { /* fields omitted */ }
Methods
impl RandState
[src]
fn new() -> RandState
fn new_mt() -> RandState
fn new_lc_2exp(a: Mpz, c: u64, m2exp: u64) -> RandState
fn new_lc_2exp_size(size: u64) -> RandState
fn seed(&mut self, seed: Mpz)
fn seed_ui(&mut self, seed: u64)
fn urandom(&mut self, n: &Mpz) -> Mpz
Generate a uniform random integer in the range 0 to n-1, inclusive
fn urandom_2exp(&mut self, n: u64) -> Mpz
Generate a uniformly distributed random integer in the range 0 to 2n−1, inclusive.
Trait Implementations
impl Send for RandState
[src]
impl Sync for RandState
[src]
impl Drop for RandState
[src]
impl Clone for RandState
[src]
fn clone(&self) -> RandState
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more