I think random.choice is broken

#1

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

#2

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

2 Likes