I think random.choice is broken

This code:

var side = random.choice([-1,1]);

gives an error: myArray is not defined

So does this:

var array = [-1,1];
var side = random.choice(array);
2 Likes

Oops, that was my bad. Just fixed this and it should be out in the next update.

2 Likes