Crate randge

Source
Expand description

Generate random numbers that are not repeated in the range

§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]

§Features

  • rand

Modules§

impls
You don’t need to view the contents of this

Traits§

FnRand
Function to generate random numbers

Functions§

randge
Alias of randge_tree
randge_barrel
Generate random numbers that are not repeated in the range
randge_linear
Generate random numbers that are not repeated in the range
randge_tree
Generate random numbers that are not repeated in the range