pub fn thread_rng() -> SeededRng {
        THREAD_RNG.with(|optional_rng_cell| {
            let mut optional_rng = optional_rng_cell.borrow_mut();
            let mut rng = optional_rng.take().unwrap_or_else(SeededRng::new);
            let new_rng = rng.new_rng();
            *optional_rng = Some(rng);
            new_rng
        })
    }
/// Constructs a thread-local `SeededRng`. The seed is generated via a global `SeededRng` using
/// the global seed.
Constructs a thread-local `SeededRng`. The seed is generated via a global `SeededRng` using
the global seed.
Constructs a thread - local ` SeededRng ` . The seed is generated via a global ` SeededRng ` using the global seed .
pub fn thread_rng() -> SeededRng {
        THREAD_RNG.with(|optional_rng_cell| {
            let mut optional_rng = optional_rng_cell.borrow_mut();
            let mut rng = optional_rng.take().unwrap_or_else(SeededRng::new);
            let new_rng = rng.new_rng();
            *optional_rng = Some(rng);
            new_rng
        })
    }
pub fn thread_rng ( ) -> SeededRng { THREAD_RNG . with ( | optional_rng_cell | { let mut optional_rng = optional_rng_cell . borrow_mut ( ) ; let mut rng = optional_rng . take ( ) . unwrap_or_else ( SeededRng :: new ) ; let new_rng = rng . new_rng ( ) ; * optional_rng = Some ( rng ) ; new_rng } ) }
Constructs a thread-local `SeededRng`.
Constructs a thread - local ` SeededRng ` .