Struct xiangyun::rand::Solver
[−]
[src]
pub struct Solver { /* fields omitted */ }
Solver is random number solver
Please do not assume that the fields are any type
Methods
impl Solver
[src]
fn new() -> Self
A lazy way to get a random solver
fn new_multibase(mul: usize) -> Self
Insert a new base
fn set_style(&mut self, style: Style)
Set random solver style
fn get_base(&self, handle: usize) -> Option<BaseRand>
Get handle base
fn set_base(&mut self, handle: usize, base: BaseRand) -> bool
fn multisrand(&mut self, seed: Vec<usize>)
Set the random seed
fn lazy_srand(&mut self)
Lazy way to set the random seed
fn rand(&mut self) -> f64
Get a random number
fn multirand(&mut self) -> f64
Get a random number for multibase