Facebook
From Adrian Pietrzak, 5 Years ago, written in Java.
Embed
Download Paste or View Raw
Hits: 224
  1. import java.util.Random;
  2.  
  3. public class Main {
  4.  
  5.     public static void main(String[] args) {
  6.  
  7.         int[] tab = new int[30];
  8.         Random rand = new Random();
  9.  
  10.         for (int i = 0; i<29; i++) {
  11.             tab[i] = rand.nextInt(51) + 99;
  12.         }
  13.  
  14.         for (int i = 0; i<29; i++) {
  15.             System.out.println(tab[i]);
  16.         }
  17.     }
  18. }