I use this normally.
var min = 0;
var max = 1;
console.log(Math.round((Math.random() * (max - min) + min)));
It works fine and dandy, but I can't get over thinking that this may be an expensive way of producing this result, does anyone know of a more efficient way?
Or is this the most efficient way?