StdRandom { public static double uniform() { return random.nextDouble(); } private  StdRandom(); static void setSeed(long seed); static double uniform(); static double random(); static int uniform(int N); static int uniform(int a, int b); static double uniform(double a, double b); static boolean bernoulli(double p); static boolean bernoulli(); static double gaussian(); static double gaussian(double mean, double stddev); static int geometric(double p); static int poisson(double lambda); static double pareto(double alpha); static double cauchy(); static int discrete(double[] a); static double exp(double lambda); static void shuffle(Object[] a); static void shuffle(double[] a); static void shuffle(int[] a); static void shuffle(Object[] a, int lo, int hi); static void shuffle(double[] a, int lo, int hi); static void shuffle(int[] a, int lo, int hi);  }
@Test public void testUniform_1() throws Exception { double result = StdRandom.uniform(); }
@Test public void testUniform_2() throws Exception { int N = 1; int result = StdRandom.uniform(N); assertEquals(0, result); }
@Test public void testUniform_3() throws Exception { double a = 1.0; double b = 1.0; double result = StdRandom.uniform(a, b); assertEquals(1.0, result, 0.1); }