Advertisement
JeffGrigg

RandomNumberGen

Aug 28th, 2017
248
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 5 0.35 KB | None | 0 0
  1. import java.util.Random;
  2.  
  3. public class RandomNumberGen {
  4.     public static void main(String[] args) {
  5.         final Random randomNumberGenerator = new Random();
  6.         for (int i = 0; i < 100; ++i) {
  7.             System.out.print(randomNumberGenerator.nextInt(1000));
  8.             System.out.print(", ");
  9.         }
  10.         System.out.println();
  11.     }
  12. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement