Struct tcod::random::Rng
[−]
[src]
pub struct Rng { /* fields omitted */ }
pub struct Rng { /* fields omitted */ }
impl Rng
[src]fn get_instance() -> Rng
fn new(algo: Algo) -> Rng
fn new_with_seed(algo: Algo, seed: u32) -> Rng
fn save(&self) -> Rng
fn restore(&mut self, backup: &Rng)
fn set_distribution(&self, distribution: Distribution)
fn get_int(&self, min: i32, max: i32) -> i32
fn get_int_mean(&self, min: i32, max: i32, mean: i32) -> i32
fn get_float(&self, min: f32, max: f32) -> f32
fn get_float_mean(&self, min: f32, max: f32, mean: f32) -> f32
fn get_double(&self, min: f64, max: f64) -> f64
fn get_double_mean(&self, min: f64, max: f64, mean: f64) -> f64
impl AsNative<TCOD_random_t> for Rng
[src]unsafe fn as_native(&self) -> &TCOD_random_t
impl Drop for Rng
[src]