@Test public void testRandomInt_int() { System.out.println("nextInt"); smile.math.Random instance = new Random(System.currentTimeMillis()); for (int i = 0; i < 1000000; i++) { int n = instance.nextInt(1000000) + 1; int result = instance.nextInt(n); assertTrue(result >= 0); assertTrue(result < n); } }
public int nextInt() { return twister.nextInt(); }
Random { public int nextInt() { return twister.nextInt(); } }
Random { public int nextInt() { return twister.nextInt(); } Random();  Random(long seed); }
Random { public int nextInt() { return twister.nextInt(); } Random();  Random(long seed); void setSeed(long seed); double nextDouble(); void nextDoubles(double[] d); double nextDouble(double lo, double hi); void nextDoubles(double[] d, double lo, double hi); int nextInt(); int nextInt(int n); long nextLong(); int[] permutate(int n); void permutate(int[] x); void permutate(float[] x); void permutate(double[] x); void permutate(Object[] x); }
Random { public int nextInt() { return twister.nextInt(); } Random();  Random(long seed); void setSeed(long seed); double nextDouble(); void nextDoubles(double[] d); double nextDouble(double lo, double hi); void nextDoubles(double[] d, double lo, double hi); int nextInt(); int nextInt(int n); long nextLong(); int[] permutate(int n); void permutate(int[] x); void permutate(float[] x); void permutate(double[] x); void permutate(Object[] x);  }