Java examples for java.util:Random Int
get Random 200 int values
//package com.java2s; import java.util.Random; public class Main { public static void main(String[] argv) throws Exception { System.out.println(java.util.Arrays.toString(getRandom200())); }/*from w ww .ja v a2 s .com*/ private static Random rand = new Random(); public static final long[] getRandom200() { long[] _values = new long[200]; for (int i = 0; i < 200; i++) _values[i] = rand.nextInt(Integer.MAX_VALUE); return _values; } }