Simple Random entre 2 numeros mayor y menos

var high:uint = 100;
var low:uint = 0;
var positionX:uint;

for (var i: int  = 0; i < 12; i++ ) {

positionX  = (Math.floor(Math.random() * (high – low + 1)) + low);
trace(“numero :” , i,  +  positionX);

}

 

Advertisement

Deja un comentario

Fill in your details below or click an icon to log in:

Logo de WordPress.com

You are commenting using your WordPress.com account. Log Out / Cambiar )

Twitter picture

You are commenting using your Twitter account. Log Out / Cambiar )

Facebook photo

You are commenting using your Facebook account. Log Out / Cambiar )

Connecting to %s