The Python module
random contains functions for generating random numbers according to several common distributions.
There are, however, a few common distributions not on the list above. Code is available here for the following distributions.
SciPy has a large collection of random number generation functions as methods on distribution objects. See Distributions in SciPy.