public static void main(String[] args) { double newzetan = ZipfianGenerator.zetastatic(ITEM_COUNT, ZipfianGenerator.ZIPFIAN_CONSTANT); System.out.println("zetan: " + newzetan); System.exit(0); ScrambledZipfianGenerator gen = new ScrambledZipfianGenerator(10000); for (int i = 0; i < 1000000; i++) { System.out.println(gen.nextInt()); } }
/** Return the next long in the sequence. */ public long nextLong() { long ret = gen.nextLong(); ret = _min + Utils.fnvHash64(ret) % _itemcount; setLastInt((int) ret); return ret; }