How Do You Shuffle Through An Array To Generate A Random Number That Doesn't Repeat?
I'm trying to shuffle to generate a random number from an array and splice, but keep getting undefined for the last element that's left in the array. Here, I can generate random nu
Solution 1:
You need to replace the for loop with this:
for (let i = 0; i < called.length; i++){
Post a Comment for "How Do You Shuffle Through An Array To Generate A Random Number That Doesn't Repeat?"