import java.util.Random; public class Generator { public static void main(String[] args) { if (args.length != 1) { System.err.println("Invalid usage: Generator.class "); System.exit(1); } long count = Long.parseLong(args[0]); if (count < 0) { System.err.println("Count can't be less than zero"); System.exit(1); } Random r = new Random(0); for (long i = 0; i < count; i++) { System.out.println(r.nextInt()); } System.exit(0); } }