randge

Crates.iorandge
lib.rsrandge
version1.1.0
sourcesrc
created_at2020-12-04 10:02:06.456938
updated_at2020-12-06 05:50:48.531183
descriptionGenerate unique random numbers
homepage
repositoryhttps://github.com/2A5F/randge
max_upload_size
id319592
size23,963
Package (2A5F)

documentation

README

randge

Rust version documentation LICENSE

Generate unique random numbers

Example

use rand::thread_rng;

let v = randge(-15..15, 5, thread_rng());
let v: Vec<_> = v.collect();
// output: like [13, -3, -14, 5, 3]
Commit count: 21

cargo fmt