Random Number Generator
Random integers in a range, with or without duplicates.
How it works
Uses the browser's cryptographically secure random source rather than Math.random, which is fine for shuffling a playlist and not fine for anything where the outcome matters.
Drawing without duplicates is sampling without replacement — each number can only appear once, so you cannot draw more numbers than the range contains.