var blends = ['value0','value1','value2','value3']; alert(blends[(blends.length * Math.random())|0]);