Random number generation using C++ TR1 Overview This article explains how to use the random number generation facilities in C++ using the TR1 (C++ Standards Committee Technical Report 1 ) extensions. We will cover basic uniform random number generation as well as generating samples from common probability distributions: Bernoulli, binomial, exponential, gamma, geometric, normal, and Poisson. We will point out a few things to watch out for with specific distributions such as parameterization conventions. Finally we will indicate how to generate from probability distributions not directly supported in the TR1 such as Cauchy, chi-squared, and Student t. Support for TR1 extensions in Visual Studio 2008 is added as a feature pack . Other implementations include the Boost and Dinkumware . GCC added experimental support for C++ TR1 in version 4.3. The code samples in this article use fully qualified namespaces for clarity. You could make your code easier to read by adding a few using stat...