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

#10 in #inclusive

Download history 18/week @ 2024-03-25 39/week @ 2024-04-01 31/week @ 2024-04-15 42/week @ 2024-04-29 14/week @ 2024-05-06 23/week @ 2024-05-13 13/week @ 2024-05-20 23/week @ 2024-05-27 1/week @ 2024-06-03 8/week @ 2024-06-10 69/week @ 2024-07-08

70 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

~520KB