This module contains random number generators for arbitrary distributions. There are two generators: one for integer and one for floating point numbers.
I use this module it for another project of mine, but think it deserves a separate and dedicated repo.
Author: Boris Gorelik http://gorelik.net.
Parts of this module is based on work by [Vose, A][1] and on code by Kaushik, G
This module is distributed under the MIT license
[1] Vose, Michael D. "A linear algorithm for generating random numbers with a given distribution." Software Engineering, IEEE Transactions on 17.9 (1991): 972-975. http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.398.3339&rep=rep1&type=pdf