Someone could tell me how to make a kind random number generator with the random function (that throws several random numbers at the same time).
Thank you.
Someone could tell me how to make a kind random number generator with the random function (that throws several random numbers at the same time).
Thank you.
I leave an example maybe you help:
public class GenerarNumerosApp {
public static void main(String[] args) {
System.out.println("Generar Numeros entre 10 y 100, con decimales (sin incluir el 10 y el 100)");
//Generar 1000 numeros
for (int i=0;i<1000;i++){
double random=Math.random()*(100-10)+10;//(int)Math.floor(Math.random()*(num_maximo-num_minimo)+num_minimo).
System.out.println(random);
}
}
}
Greetings!