#random #rand #random-rs

no-std random-fast-rng

Rust library for Blazing fast non cryptographic random number generator

1 unstable release

Uses old Rust 2015

0.1.1 Aug 26, 2019
0.1.0 Aug 26, 2019

#758 in Testing

Download history 66/week @ 2024-01-09 42/week @ 2024-01-16 104/week @ 2024-01-23 50/week @ 2024-01-30 122/week @ 2024-02-06 81/week @ 2024-02-13 199/week @ 2024-02-20 201/week @ 2024-02-27 158/week @ 2024-03-05 129/week @ 2024-03-12 112/week @ 2024-03-19 108/week @ 2024-03-26 147/week @ 2024-04-02 135/week @ 2024-04-09 133/week @ 2024-04-16 102/week @ 2024-04-23

540 downloads per month
Used in 7 crates (6 directly)

MIT/Apache

23KB
383 lines

random-random-fast-rng

Latest version Documentation License

A Rust library random-fast-rng That helps generate non-cryptographic blazing fast randomness.

The randomness provided here implements the random_trait::Random trait.

Usage

Add this to your Cargo.toml:

[dependencies]
random-fast-rng = "0.1"

Examples

use random_fast_rng::{FastRng, Random};

fn do_something() {
    let mut rng = FastRng::new();
    let i: u64 = rng.gen();
    let b: [u8; 12] = rng.gen();
}

Dependencies