#random #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

#2874 in Algorithms

Download history 87/week @ 2024-12-17 79/week @ 2024-12-24 58/week @ 2024-12-31 86/week @ 2025-01-07 124/week @ 2025-01-14 98/week @ 2025-01-21 116/week @ 2025-01-28 174/week @ 2025-02-04 96/week @ 2025-02-11 84/week @ 2025-02-18 113/week @ 2025-02-25 69/week @ 2025-03-04 147/week @ 2025-03-11 230/week @ 2025-03-18 138/week @ 2025-03-25 125/week @ 2025-04-01

653 downloads per month
Used in 8 crates (7 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