new

Function new 

Source
pub fn new() -> Random<impl Rng + Clone> 
Expand description

Creates a new instance of the default PRNG.

The generator is seeded securely from the system entropy source.

§Examples

let mut rand = urandom::new();
let value: i32 = rand.next();