Brollylssj

Random

Dec 9th, 2014
167
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.39 KB | None | 0 0
  1. import java.util.Random;
  2.  
  3.  
  4. public class Main {
  5.  
  6.     public static void main(String[] args) {
  7.    
  8.         Random random = new Random();
  9.         int[] liczba = new int[10];
  10.        
  11.            
  12.         for (int j = 0; j < liczba.length; j++) {
  13.            
  14.               liczba[j] = random.nextInt(100);
  15.               System.out.println(liczba[j]);
  16.                
  17.         }
  18.              
  19.         }
  20.     }
Advertisement
Add Comment
Please, Sign In to add comment