in reply to Re: Select three random numbers between 1..10
in thread Select three random numbers between 1..10

I didn't think about the efficiency of splice. I originally had it coded to shuffle after selecting the element. In other words, select the random element, swap the last element with the selected one, and shorten the array. Technically, the array does not need to be shortened.
  • Comment on Re: Re: Select three random numbers between 1..10