Advertisement
Guest User

Untitled

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