#random #integer #int #inclusive

no-std random-integer

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

9 stable releases

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

#9 in #inclusive

35 downloads per month

MIT license

6KB
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

~1.4–2MB
~37K SLoC