#include <RandomFuns.h>
Inheritance diagram for RandomFun:


Use different index values for different objects to get different results for the same seed
Definition at line 39 of file RandomFuns.h.
Public Member Functions | |
| RandomFun (const IntFun &seed_, int index_, const char *name_=0) | |
| RandomFun (const IntFun &seed_, int index_, const std::string &name_) | |
| Constructor from a C++ string. | |
| RandomFun (const IntFun &seed1_, const IntFun &seed2_, int index_, const char *name_=0) | |
| RandomFun (const IntFun &seed1_, const IntFun &seed2_, int index_, const std::string &name_) | |
| virtual Float_FF | operator() () const |
| Returns a random number that depends on seed() and index. | |
| virtual const FillIterator * | getIterator () const |
| Returns pointer to iterator, if any. | |
Static Public Member Functions | |
| long long | iterate (long long i) |
| long long | toInt (Float_FF d) |
| Float_FF | toDouble (long long i) |
| Float_FF | generateNext (Float_FF d) |
Protected Member Functions | |
| virtual | ~RandomFun () |
| Protected destructor ensures creation on the heap. | |
Protected Attributes | |
| const IntFun & | seed |
| The seed function object. | |
| int | index |
| The index. | |
| bool | cleanup |
Static Private Attributes | |
| const long long | a = 16807LL |
| const long long | c = 0LL |
| const long long | m = 2147483647LL |
|
||||||||||||||||
|
Definition at line 40 of file RandomFuns.C. |
|
||||||||||||||||
|
Constructor from a C++ string.
Definition at line 48 of file RandomFuns.C. |
|
||||||||||||||||||||
|
Definition at line 58 of file RandomFuns.C. |
|
||||||||||||||||||||
|
Definition at line 66 of file RandomFuns.C. |
|
|
Flag for clsen up Definition at line 83 of file RandomFuns.h. Referenced by ~RandomFun(). |
1.3.2