Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Cria 500 números aleatórios que vão de 0 a 99999
- import java.util.Arrays;
- class Inicio{
- public static void main(String[] args) {
- int quantidadeDeNumeros = 500;
- int[] numeros = new int[quantidadeDeNumeros];
- for(int i = 0; i < numeros.length; i++) {
- numeros[i] = (int) (int) (Math.random() * (100000 - 0)) + 0;
- }
- System.out.println(Arrays.toString(numeros));
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement