Main Page Namespace List Class Hierarchy Alphabetical List Compound List File List Namespace Members Compound Members
TRNG::LCG64 Class Reference
linear congruential generator.
More...
#include <trng.h>
Inheritance diagram for TRNG::LCG64:
List of all members.
Public Methods |
| LCG64 (unsigned long long a_=18145460002477866997ull, unsigned long long b_=1ul, long seed_=0ul) |
| constructor. More...
|
Detailed Description
This class implements a simple linear congruential pseudo random number generator with a power of two modulus in the form
is the actual pseudo random number. To get a full period of
and
have to be choosen that
and
is odd.
-
Author:
-
Heiko Bauke
Definition at line 1156 of file trng.h.
Constructor & Destructor Documentation
TRNG::LCG64::LCG64 |
( |
unsigned long long |
a_ = 18145460002477866997ull, |
|
|
unsigned long long |
b_ = 1ul, |
|
|
long |
seed_ = 0ul |
|
) |
|
|
The documentation for this class was generated from the following file:
Generated on Tue Dec 10 13:31:38 2002 for Tina's Random Number Generators by
1.2.15