Here is a very simple approximate solution to the problem. Sort an array of true/false values randomly and then pick the first item.
This should give a 1 in 3 chance of being true..
var a = [true, false, false]
a.sort(function(){ return Math.random() >= 0.5 ? 1 : -1 })[0]