export default function App() {
Array.prototype.shuffle = function () {
let rnum=[]
let random = this
for (let i= 0; i < random.length; i++){
let randomizer = Math.floor(Math.random()*(this.length));
rnum.push(randomizer)
}
console.log(rnum)
}
let random = [0,1,2,3,4].shuffle()
This is my current code. It currently prints a random array of the "random" numbers, how ever im trying to print all the available numbers without any one number repeating itself inside of the "rnum" array. If anyone could help me out id be gratefull!