Skip to main content

exp_rand

Function exp_rand 

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

Generate an exponential random number with rate 1.

§Important

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