const numbers = Array(30).fill().map((n, i) => (i + 1)); const shuffle = []; while(numbers.length > 0) { shuffle.push( numbers.splice(Math.floor(Math.random()*numbers.length), 1)[0] ) }