I need to create a random -1 or 1 to multiply an already existing number by. Issue is my current random function generates a -1, 0, or 1. What is the most efficient way of doing
I'm using underscore.js shuffle
var plusOrMinus = _.shuffle([-1, 1])[0];