Ver Mensaje Individual
  #8 (permalink)  
Antiguo 06/03/2005, 16:48
the_aibo
 
Fecha de Ingreso: agosto-2003
Ubicación: Lima-Peru
Mensajes: 33
Antigüedad: 20 años, 8 meses
Puntos: 0
Hola, que tal si pruebas algo así:

//Devuelve un numero aleatorio entre el 5 y el 10, inclusives
function aleatorio(a:Number, b:Number):Number{
return Math.round((Math.random()*(b-a))+a);
}

var mi_arreglo:Array = new Array();
var num_elementos = 10;//Para 10 elementos x ejemplo
for (var i:Number = 0; i<num_elementos; i++){
mi_arreglo[i] = aleatorio(10,100);
}