Closed woodgear closed 5 years ago
Not clear what you're asking.
run this code under https://npm.runkit.com/unique-random mutli times. output could be below
1
0
1
and that is not unique
Per the package description:
Generate random numbers that are consecutively unique
It only guarantees that the numbers are consecutively unique.