If so, you may find 'Distributions as Objects' unfamiliar, if not alien.

However, do not panic, both definition
and usage are not really very different.

A very simple example of generating the same values as the NAG
C library for the binomial distribution follows. (If you find slightly
different values, the Boost C++ version, using double or better, is very
likely to be the more accurate. Of course, accuracy is not usually a concern
for most applications of this function).