@Test public void testRandom() { System.out.println("random"); smile.math.Random instance = new Random(System.currentTimeMillis()); for (int i = 0; i < 1000000; i++) { double result = instance.nextDouble(); assertTrue(result >= 0.0); assertTrue(result < 1.0); } }
public Random() { real = new UniversalGenerator(); twister = new MersenneTwister(); }
Random { public Random() { real = new UniversalGenerator(); twister = new MersenneTwister(); } }
Random { public Random() { real = new UniversalGenerator(); twister = new MersenneTwister(); } Random();  Random(long seed); }
Random { public Random() { real = new UniversalGenerator(); twister = new MersenneTwister(); } 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 Random() { real = new UniversalGenerator(); twister = new MersenneTwister(); } 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);  }