Number generator with Random [closed]

1

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.

    
asked by CamiloJc 01.03.2017 в 01:50
source

1 answer

2

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!

    
answered by 01.03.2017 в 03:22