The code I was using is here:
var random = [];
var i = 10;
while(i) {
random.push(Math.floor(Math.random() * 2));
i--;
}console.log(random.join());
I was just manually doing the insertions. It lost five out of five times, though the last time only by a very small amount.