Advertisement
Guest User

Untitled

a guest
Jun 17th, 2019
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. import java.util.Random;
  2.  
  3. public static void main(String[] args) {
  4.  
  5. Scanner teclado = new Scanner(System.in);
  6. System.out.println("Quantos jogos você quer fazer?");
  7.  
  8. int jogos = teclado.nextInt();
  9.  
  10. Random aleatorio = new Random();
  11.  
  12. int[] numeros = new int[6];
  13.  
  14. for (int i = 1; i <= numeros.length; i++) {
  15. System.out.println(aleatorio.nextInt(61));
  16.  
  17. }
  18.  
  19.  
  20.  
  21. teclado.close();
  22. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement