Advertisement
CamiloC21

Untitled

Feb 18th, 2020
102
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.52 KB | None | 0 0
  1. package com.company;
  2. import java.sql.SQLOutput;
  3. import java.util.Random;
  4. public class Main {
  5.  
  6.     public static void main(String[] args) {
  7.  
  8.         Random rand = new Random();
  9.  
  10.         int[] myList;
  11.  
  12.         myList = new int[1000];
  13.  
  14.         int slot = 0;
  15.  
  16.         for (int i = 0; i < myList.length; i++) {
  17.             myList[i] = rand.nextInt(90)+10;
  18.             System.out.print(myList[i] + "  ");
  19.             if (i % 20 == 19){
  20.                 System.out.println();
  21.             }
  22.  
  23.  
  24.  
  25.         }
  26.     }
  27.  
  28. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement