D-Programming-Language/phobos — pull request #571 by WebDrake (2012-05-06 22:25:36+00:00)
Title: Non-uniform random number generation

This code implements non-uniform random number distributions for Phobos. The broad concept is to follow the distributions described in http://open-std.org/jtc1/sc22/wg21/docs/papers/2007/n2461.pdf pp.858-9 and their implementation in the Boost.Random library, but will include some extras not provided in these sources (e.g. Pareto distribution).

Current code implements the exponential distribution; others will be following in subsequent patches, 1 distribution at a time. The aim here is to get the first-implemented distribution reviewed so as to clarify requirements for the rest.