#random #numbers #exclusive #start #inclusive #shuffle #end

random_sequence

Generate a random shuffle of the numbers between start (inclusive) and end (exclusive)

2 releases

0.1.1 Mar 10, 2021
0.1.0 Mar 10, 2021

#5 in #inclusive

MIT license

5KB
82 lines

Random Sequence

Generate a random shuffle of the numbers between start (inclusive) and end (exclusive) in O(1) space.

No repeats will be generated. No number in the range won't be generated.


lib.rs:

Generate a random shuffle of the numbers between start (inclusive) and end (exclusive) in O(1) space.

No repeats will be generated. No number in the range won't be generated.

Dependencies

~795KB
~15K SLoC