Struct xiangyun::rand::Rand
[−]
[src]
pub struct Rand { /* fields omitted */ }
Rand is random number solver
Please don't assume that the fields are any type
Methods
impl Rand
[src]
fn new() -> Self
a lazy way to get a random solver
fn new_multibase(mul: usize) -> Self
fn set_style(&mut self, style: Style)
fn srand(&mut self, handle: usize, seed: usize)
fn multisrand(&mut self, seed: Vec<usize>)
fn lazy_srand(&mut self)
fn set_function(&mut self, handle: usize, style: &str)
fn rand(&mut self) -> f64
get a random number
fn multirand(&mut self) -> f64
get a random number for multibase