#random #int #integer #inclusive

no-std random-integer

Generate a random integer between two integer numbers (including the two integer numbers)

9 stable releases

✓ Uses Rust 2018 edition

1.2.1 Jun 10, 2020
1.2.0 Jun 9, 2020
1.1.1 Mar 13, 2020
1.0.5 Sep 17, 2019
1.0.0 Aug 31, 2018

#41 in No standard library

Download history 252/week @ 2020-02-28 301/week @ 2020-03-06 265/week @ 2020-03-13 131/week @ 2020-03-20 80/week @ 2020-03-27 113/week @ 2020-04-03 139/week @ 2020-04-10 119/week @ 2020-04-17 64/week @ 2020-04-24 55/week @ 2020-05-01 151/week @ 2020-05-08 385/week @ 2020-05-15 56/week @ 2020-05-22 79/week @ 2020-05-29 179/week @ 2020-06-05 87/week @ 2020-06-12

586 downloads per month

MIT license

5KB
110 lines

Random Integer

Build Status

This crate was deprecated, use random-number instead.

https://crates.io/crates/random-number

Crates.io

https://crates.io/crates/random-integer

Documentation

https://docs.rs/random-integer

License

MIT


lib.rs:

Random Integer

Generate a random integer between two integer numbers (including the two integer numbers).

Example

extern crate random_integer;

let rnd = random_integer::random_u8(224, 255);

println!("{}", rnd);

Dependencies

~360KB