Sample without replacement
Every value appears at most once within a batch. Drawing five numbers from 1 to 5 produces each number exactly once. The next batch starts a fresh selection.
Large ranges without large arrays
The sampler uses memory proportional to your batch size, rather than building a list of every possible integer. Choose random order for assignments or ascending order for easier reading.
Why can’t I draw ten unique numbers from 1–6?
That range contains only six values. Increase the range or reduce the number of results.