DEV Community

Discussion on: Working with random numbers in JavaScript

burakkp profile image
Burak Kucukparmaksiz

Hi Philip,

I am trying to some random number generation, for example, numbers selecting this array => [1 to 9]
numbers generating 9 digits but I want to use each number using just 2 times, not more. How can I do that?