Trying to use the
shuffle() method on an array returns null for me. Here is a simple example:
var nums = [1,2,3,4,5]
[1, 2, 3, 4, 5]
What am I doing wrong? It doesn't help if I capture it with something like:
numsShuffled = nums.shuffle()
It also doesn't help if I move it out of the
Am I missing something or do I need to write my own shuffle function?