You are here

Random Numbers

In ROOT pseudo-random numbers can be generated using the TRandom classes. 4 different types exist: TRandom, TRandom1, TRandom2 and TRandom3. All they implement a different type of random generators. TRandom is the base class used by others. It implements methods for generating random numbers according to pre-defined distributions, such as Gaussian or Poisson.

In addition, UNU.RAN provides the possibility for generating non-uniform pseudo-random numbers.

The tutorial, testrandom, show the usage of all random number classes and their CPU performances.