var xGoOn:Number; if (Math.random()>0.5) xGoOn = Math.random() * 50 - 100; else xGoOn = Math.random() * 50 + 50;