lib.rs
Only showing results from lib.rs
Clear filter to show all search results
lib.rs
lib.rs
13,737,321 downloads per month Used in 23,002 crates (680 directly). Apache-2.0 OR MIT. 33KB 592 lines. fastrand. A simple and fast random number generator. The implementation uses Wyrand, a simple and fast generator but not cryptographically secure.. Examples. Flip a coin: if fastrand::bool() {println!("heads");} else {println!("tails");}Generate a random i32:. let num = fastrand::i32(..
Related: turborand, wyrand, bevy_prng, bevy_turborand See also: urandom, bevy_mod_physx, bevy_defer, bevy_gizmos, bevy_stardust, bevy-trait-query, bevy_macro_utils, bevy-persistent, rand, bevy-inspector-egui, bevy_app Lib.rs is an unofficial list of Rust/Cargo crates, created by kornelski.It contains data from multiple sources, including heuristics, and manually curated data.
TL;DR: tinyrand is 2x faster than fastrand and 6x faster than rand. Statistical properties. It's impossible to tell for certain whether a certain PRNG is good; the answer is probabilistic. All three algorithms stand up well against the Dieharder barrage of tests, but Wyrand and SplitMix are a little better than Xorshift. (Tested on 30.8 billion samples.)
884 downloads per month Used in 14 crates (4 directly). Apache-2.0 OR MIT. 220KB 2.5K SLoC turborand. Fast random number generators. turborand's internal implementations use Wyrand, a simple and fast generator but not cryptographically secure, and also ChaCha8, a cryptographically secure generator tuned to 8 rounds of the ChaCha algorithm in order to increase throughput considerably without ...
lib.rs
lib.rs
lib.rs
lib.rs
lib.rs
lib.rs
lib.rs
lib.rs
Help us improve DuckDuckGo searches with your feedback