@Test public void testSeedConsidering() { UniformRandomProducer producer1 = new UniformRandomProducer(0, 1, 0L); UniformRandomProducer producer2 = new UniformRandomProducer(0, 1, 0L); assertEquals(producer1.get(), producer2.get(), 0.0001); }
@Override public Double get() { double result = generator().nextDouble() * (to - from) + from; if (result > to) result = to; return result; }
UniformRandomProducer extends RandomProducerWithGenerator { @Override public Double get() { double result = generator().nextDouble() * (to - from) + from; if (result > to) result = to; return result; } }
UniformRandomProducer extends RandomProducerWithGenerator { @Override public Double get() { double result = generator().nextDouble() * (to - from) + from; if (result > to) result = to; return result; } UniformRandomProducer(double from, double to);  UniformRandomProducer(double from, double to, long seed); }
UniformRandomProducer extends RandomProducerWithGenerator { @Override public Double get() { double result = generator().nextDouble() * (to - from) + from; if (result > to) result = to; return result; } UniformRandomProducer(double from, double to);  UniformRandomProducer(double from, double to, long seed); @Override Double get(); }
UniformRandomProducer extends RandomProducerWithGenerator { @Override public Double get() { double result = generator().nextDouble() * (to - from) + from; if (result > to) result = to; return result; } UniformRandomProducer(double from, double to);  UniformRandomProducer(double from, double to, long seed); @Override Double get();  }