#include <Random.h>
Public Types | |
| typedef IntegralType | int_type |
| a shortcut for the type of generated 'random' numbers | |
Public Member Functions | |
| Random (int_type seed=int_type(0)) | |
| ~Random () | |
| void | reset (int_type seed) |
| int_type | randMax () const |
| int_type | nextInt () |
Definition at line 23 of file Random.h.
| Random< IntegralType >::Random | ( | int_type | seed = int_type(0) |
) | [inline] |
Constructor. Initializes the random number generator.
| seed | is used to generate other pseudo-random values based on this initial value |
Definition at line 36 of file Random.h.
References Random< IntegralType >::reset().
Here is the call graph for this function:

Re-initialize the random number generator with a given seed
| seed | is used to generate other pseudo-random values based on this initial value |
Definition at line 53 of file Random.h.
References Random< IntegralType >::randMax().
Referenced by Random< IntegralType >::Random().
Here is the call graph for this function:

Here is the caller graph for this function:

Get the maximum integer that can be generated.
Definition at line 108 of file Random.h.
Referenced by Random< IntegralType >::nextInt(), and Random< IntegralType >::reset().
Here is the caller graph for this function:

Generate a (the next) pseudo random integer.
Definition at line 123 of file Random.h.
References Random< IntegralType >::randMax().
Here is the call graph for this function:
