Skip to main content

Rng

Trait Rng 

Source
pub trait Rng: Send {
    // Required method
    fn next_f64(&mut self) -> f64;
}
Expand description

A source of uniform f64s in [0, 1). Mirrors random.Random.random() / rand.Rand.Float64() from the sibling implementations.

Required Methods§

Source

fn next_f64(&mut self) -> f64

Returns the next uniform value in [0, 1).

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§