Advertisement
lol1234561

Untitled

Sep 28th, 2023
637
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.35 KB | None | 0 0
  1. import java.util.Arrays;
  2. import java.util.Random;
  3. public class Main {
  4.     public static void main(String[] args) {
  5.         Random rand =  new Random();
  6.  
  7.         int[] num = new int[1000];
  8.  
  9.  
  10.         for( int x = 0; x < num.length; x++){
  11.             num[x] = rand.nextInt(100)+1;
  12.             System.out.print(num[x]  + "\t" );
  13.  
  14.         }
  15.     }
  16. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement