
Go to the source code of this file.
Functions | |
| CpvStaticDeclare (int, nstreams) | |
| CpvStaticDeclare (CrnStream, _defaultStream) | |
| void | CrnInit (void) |
| void | CrnInitStream (CrnStream *genptr, unsigned int seed, int type) |
| double | CrnDouble (CrnStream *genptr) |
| int | CrnInt (CrnStream *genptr) |
| float | CrnFloat (CrnStream *genptr) |
| void | CrnSrand (unsigned int seed) |
| int | CrnRand (void) |
| double | CrnDrand (void) |
Variables | |
| unsigned int | _prime_list [] |
| unsigned int | _PARAMLIST [3][2] |
| CpvStaticDeclare | ( | int | , | |
| nstreams | ||||
| ) |
| CpvStaticDeclare | ( | CrnStream | , | |
| _defaultStream | ||||
| ) |
Definition at line 68 of file random.c.
References _PARAMLIST, _prime_list, CrnDouble(), rngen_::multiplier, rngen_::prime, and rngen_::state.
Referenced by CrnInit(), CrnSrand(), and main().
Definition at line 106 of file random.c.
References rngen_::state.
Referenced by CrnDrand(), CrnFloat(), CrnInitStream(), CrnInt(), and randVal().
| float CrnFloat | ( | CrnStream * | genptr | ) |
| void CrnSrand | ( | unsigned int | seed | ) |
| int CrnRand | ( | void | ) |
Definition at line 128 of file random.c.
References CrnInt().
Referenced by AddEdges(), WSLB::AssembleStats(), NborBaseLB::AssembleStats(), CkCppInterpreter::CkCppInterpreter(), CldAckNoTaskHandler(), CldEnqueue(), CldHopHandler(), CldMoveAllSeedsAway(), CldNodeEnqueue(), RefinerApprox::create(), Refiner::create(), gengraph(), rep::POSE_Linear_rand(), rep::POSE_Uniform_rand(), and StealLoad().
| double CrnDrand | ( | void | ) |
| unsigned int _prime_list |
| unsigned int _PARAMLIST[3][2] |
Initial value:
{{0x87b0b0fdU, 0x27bb2ee6U},
{0xe78b6955U,0x2c6fe96eU},
{0x31a53f85U,0x369dea0fU}}
Definition at line 35 of file random.c.
Referenced by CrnInitStream().
1.5.5