Lines Matching refs:rnd
233 function rnd(n,min) { function
241 return (parseInt(rnd(2),10)===1?n*-1:n);
246 vRndX = plusMinus(rnd(storm.vMaxX,0.2));
247 vRndY = rnd(storm.vMaxY,0.2);
356 this.x = x||parseInt(rnd(screenX-20),10);
357 this.y = (!isNaN(y)?y:-rnd(screenY)-12);
472 s.vX = vRndX+rnd(storm.vMaxX*0.12,0.1);
473 s.vY = vRndY+rnd(storm.vMaxY*0.12,0.1);
513 s.x = parseInt(rnd(screenX-storm.flakeWidth-20),10);
514 s.y = parseInt(rnd(screenY)*-1,10)-storm.flakeHeight;
537 flake = storm.flakes[parseInt(rnd(storm.flakes.length),10)];
563 storm.flakes[storm.flakes.length] = new storm.SnowFlake(parseInt(rnd(flakeTypes),10));