@Test public void testDistributionGeneration() { double[] probs = DiscreteRandomProducer.randomDistribution(5, 0L); assertArrayEquals(new double[] {0.23, 0.27, 0.079, 0.19, 0.20}, probs, 0.01); }
public static double[] randomDistribution(int numOfValues) { return randomDistribution(numOfValues, System.currentTimeMillis()); }
DiscreteRandomProducer extends RandomProducerWithGenerator { public static double[] randomDistribution(int numOfValues) { return randomDistribution(numOfValues, System.currentTimeMillis()); } }
DiscreteRandomProducer extends RandomProducerWithGenerator { public static double[] randomDistribution(int numOfValues) { return randomDistribution(numOfValues, System.currentTimeMillis()); } DiscreteRandomProducer(double... probs);  DiscreteRandomProducer(long seed, double... probs); }
DiscreteRandomProducer extends RandomProducerWithGenerator { public static double[] randomDistribution(int numOfValues) { return randomDistribution(numOfValues, System.currentTimeMillis()); } DiscreteRandomProducer(double... probs);  DiscreteRandomProducer(long seed, double... probs); static DiscreteRandomProducer uniform(int numOfValues); static DiscreteRandomProducer uniform(int numOfValues, long seed); static double[] randomDistribution(int numOfValues); static double[] randomDistribution(int numOfValues, long seed); @Override Double get(); int getInt(); int size(); }
DiscreteRandomProducer extends RandomProducerWithGenerator { public static double[] randomDistribution(int numOfValues) { return randomDistribution(numOfValues, System.currentTimeMillis()); } DiscreteRandomProducer(double... probs);  DiscreteRandomProducer(long seed, double... probs); static DiscreteRandomProducer uniform(int numOfValues); static DiscreteRandomProducer uniform(int numOfValues, long seed); static double[] randomDistribution(int numOfValues); static double[] randomDistribution(int numOfValues, long seed); @Override Double get(); int getInt(); int size();  }