pub unsafe fn GetRNGstate()Expand description
Save the current RNG state from R’s global state.
Must be called before using unif_rand(), norm_rand(), etc.
The state is restored with PutRNGstate().
§Example
ⓘ
unsafe {
GetRNGstate();
let x = unif_rand();
let y = norm_rand();
PutRNGstate();
}Checked wrapper for GetRNGstate. Calls GetRNGstate_unchecked and routes through with_r_thread.
Generated from source location line 3235, column 12.
Generated from source file miniextendr-api/src/ffi.rs.