zipfian
Zipf Distribution Generation for Node.js
Usage
To generate a zipf generator, create an instance of ZipfGenerator, and then get your numbers!
var zipfGenerator = ; console;
If you want more control over the generator parameters, you can create the generator yourself.
var Generator = ZipfGenerator; var zipfGenerator = min max zipfConstant;
Bugs + Contributing
Please submit bugs or feature requests in github issues. In particular, this implementation is missing the ability to resize the generator found in previous implementation. Contributions are welcome!
Todo
- Resizing a generator
- Scrambled generator