#include <Basics.h>
Public Member Functions | |
Rndm () | |
Default constructor. | |
Rndm (long inseed) | |
Standard constructor giving a seed. | |
Static Public Member Functions | |
static void | init (long=0) |
Initialize the random generator optionally giving a seed. | |
static double | flat () |
Return a number uniformly distributed between 0 and 1. | |
static double | exp () |
Return a random number distributed according to . | |
static double | xexp () |
Return a random number distributed according to . | |
static double | gauss () |
Return a random number distributed according to . | |
static long | pick (const vector< double > &) |
Return an index of the given vector according to the relative (positive) probabilities therein. | |
Static Private Attributes | |
static bool | initrndm |
Has the generator been initialized? | |
static bool | savgauss |
Has a gaussian number been saved? | |
static long | i97 |
Internal index. | |
static long | j97 |
Internal index. | |
static double | u [97] |
Internal variable. | |
static double | c |
Internal variable. | |
static double | cd |
Internal variable. | |
static double | cm |
Internal variable. | |
static double | save |
Internal variable. |
This should be replaced with the ThePEG RandomGenerator. Uses only static methods.
Definition at line 78 of file Basics.h.
Pythia7::Shower::Rndm::Rndm | ( | ) | [inline] |
Pythia7::Shower::Rndm::Rndm | ( | long | inseed | ) | [inline] |