Generate one or many random numbers within any range, with an option to avoid duplicates.
It's capped to the number of values actually available in your range.
It uses standard JavaScript randomness, fine for games, raffles and everyday use — not for security-sensitive purposes.