@Test public void testMinAndMaxParameter() { long min = 5; long max = 10; ZipfianGenerator zipfian = new ZipfianGenerator(min, max); for (int i = 0; i < 10000; i++) { long rnd = zipfian.nextValue(); assertFalse(rnd < min); assertFalse(rnd > max); } }
@Override public Long nextValue() { return nextLong(items); }
ZipfianGenerator extends NumberGenerator { @Override public Long nextValue() { return nextLong(items); } }
ZipfianGenerator extends NumberGenerator { @Override public Long nextValue() { return nextLong(items); } ZipfianGenerator(long items);  ZipfianGenerator(long min, long max);  ZipfianGenerator(long items, double zipfianconstant);  ZipfianGenerator(long min, long max, double zipfianconstant);  ZipfianGenerator(long min, long max, double zipfianconstant, double zetan); }
ZipfianGenerator extends NumberGenerator { @Override public Long nextValue() { return nextLong(items); } ZipfianGenerator(long items);  ZipfianGenerator(long min, long max);  ZipfianGenerator(long items, double zipfianconstant);  ZipfianGenerator(long min, long max, double zipfianconstant);  ZipfianGenerator(long min, long max, double zipfianconstant, double zetan); @Override Long nextValue(); static void main(String[] args); @Override double mean(); }
ZipfianGenerator extends NumberGenerator { @Override public Long nextValue() { return nextLong(items); } ZipfianGenerator(long items);  ZipfianGenerator(long min, long max);  ZipfianGenerator(long items, double zipfianconstant);  ZipfianGenerator(long min, long max, double zipfianconstant);  ZipfianGenerator(long min, long max, double zipfianconstant, double zetan); @Override Long nextValue(); static void main(String[] args); @Override double mean(); static final double ZIPFIAN_CONSTANT; }