Skip to main content

norm_rand

Function norm_rand 

Source
pub unsafe fn norm_rand() -> f64
Expand description

Generate a standard normal random number (mean 0, sd 1).

§Important

Must call GetRNGstate() before and PutRNGstate() after. The safe form is RngGuard::norm_rand. Checked wrapper for norm_rand. Calls norm_rand_unchecked inside with_r_thread, which panics off R’s main thread. Generated from source location line 1624, column 12. Generated from source file miniextendr-api/src/sys.rs.