Crates.io | randge |
lib.rs | randge |
version | 1.1.0 |
source | src |
created_at | 2020-12-04 10:02:06.456938 |
updated_at | 2020-12-06 05:50:48.531183 |
description | Generate unique random numbers |
homepage | |
repository | https://github.com/2A5F/randge |
max_upload_size | |
id | 319592 |
size | 23,963 |
Generate unique random numbers
use rand::thread_rng;
let v = randge(-15..15, 5, thread_rng());
let v: Vec<_> = v.collect();
// output: like [13, -3, -14, 5, 3]