Crate wbg_rand[−][src]
A crate to enable usage of the rand
crate on wasm32-unknown-unknown
This crate provides two types, a MathRandomRng
and a WasmRng
. The
MathRandomRng
is a random number generated which is purely backed by
Math.random
. The WasmRng
is a faster in-was RNG which draws entropy
periodically from Math.random
.
Users of rand::thread_rng
should feel right at home with wasm_rng
.
Re-exports
pub use rand::*; |
Structs
MathRandomRng |
A random number generated which is hooked up to |
WasmRng |
A reasonably fast RNG for wasm which draws entropy from |
Functions
__wbindgen_describe___wbg_f_random_random_n | |
math_random_rng | |
wasm_rng |