Simplest and fastest random number generator recommended by Numerical Recipes.
More...
#include <Random.hpp>
|
| | Ranq1 (unsigned long long j) |
| | Constructor j is the seed. More...
|
| |
| unsigned long long | int64 () |
| | Generates an unsigned 64 bits integer. More...
|
| |
| double | doub () |
| | Generates a double. More...
|
| |
| float | fl () |
| | Generates a float. More...
|
| |
| unsigned int | int32 () |
| | Generates an unsigned 32 bits integer. More...
|
| |
|
| unsigned long long | v |
| | state of the random number generator More...
|
| |
Simplest and fastest random number generator recommended by Numerical Recipes.
Implements the Ranq1 algorithm.
| Ranq1::Ranq1 |
( |
unsigned long long |
j | ) |
|
|
inline |
Constructor j is the seed.
- Parameters
-
Generates a double.
- Returns
- a random number
Generates a float.
- Returns
- a random number
| unsigned int Ranq1::int32 |
( |
| ) |
|
|
inline |
Generates an unsigned 32 bits integer.
- Returns
- a random number
| unsigned long long Ranq1::int64 |
( |
| ) |
|
|
inline |
Generates an unsigned 64 bits integer.
- Returns
- a random number
| unsigned long long Ranq1::v |
state of the random number generator
The documentation for this struct was generated from the following file:
- /home/johan/Documents/UNamur/VirtualBelgium/Workspace/VirtualBelgium/include/Random.hpp