replaces cc.RANDOM1_MINUS1() with Math.random()*2-1