We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Just installed the package, cool idea BTW! Unfortunately I think it's not working correctly. the following code:
import uniqueRandom from "unique-random"; const random = uniqueRandom(1, 4); console.log(random(), random(), random(), random());
sometimes has bad results (i.e 1, 2, 4, 2 or 4, 1, 3, 4). I've noticed it's never the same number twice in a row if that's helpfull.
The text was updated successfully, but these errors were encountered:
What is incorrect exactly?
From the description:
Generate random numbers that are consecutively unique
Sorry, something went wrong.
My bad. I was looking for a package that will return a different number from the range in each random() call. You can close this issue.
random()
I'm open to having that ability added, but I don't plan to work on this myself. #9
No branches or pull requests
Just installed the package, cool idea BTW!
Unfortunately I think it's not working correctly.
the following code:
sometimes has bad results (i.e 1, 2, 4, 2 or 4, 1, 3, 4). I've noticed it's never the same number twice in a row if that's helpfull.
The text was updated successfully, but these errors were encountered: