Posts by Rodrigo Brocchi • 7 points
1 post
-
-1
votes5
answers17254
viewsA: Generate multiple random numbers without repetition
Or you can run this way: function getRandom(maxNum, qtdMax) { let n = 1; const lista = []; const val = () => Math.floor(Math.random() * maxNum + 1); do { while (n <= qtdMax) { let numero =…