#include <stdio.h>#include <time.h>#include "random.h"Include dependency graph for random.cpp:

Go to the source code of this file.
Defines | |
| #define | __RANDOM_CPP |
| #define | MODULUS 2147483647 |
| #define | MULTIPLIER 48271 |
| #define | CHECK 399268537 |
| #define | STREAMS 256 |
| #define | A256 22925 |
| #define | DEFAULT 123456789 |
Functions | |
| double | Random (void) |
| void | PlantSeeds (long x) |
| int | nextInteger (int range, const char *file, int line) |
| void | PutSeed (long x) |
| void | GetSeed (long *x) |
| void | SelectStream (int index) |
| void | TestRandom (void) |
Variables | |
| static long | seed [STREAMS] = {DEFAULT} |
| static int | stream = 0 |
| static int | initialized = 0 |
|
|
Definition at line 38 of file random.cpp. |
|
|
Definition at line 45 of file random.cpp. |
|
|
Definition at line 43 of file random.cpp. |
|
|
Definition at line 46 of file random.cpp. |
|
|
Definition at line 41 of file random.cpp. |
|
|
Definition at line 42 of file random.cpp. |
|
|
Definition at line 44 of file random.cpp. |
|
|
Definition at line 139 of file random.cpp. References seed. |
|
||||||||||||||||
|
Definition at line 103 of file random.cpp. |
|
|
Definition at line 73 of file random.cpp. References A256, initialized, MODULUS, PutSeed(), s, seed, SelectStream(), and STREAMS. |
|
|
Definition at line 111 of file random.cpp. |
|
|
Definition at line 53 of file random.cpp. References MODULUS, MULTIPLIER, seed, and t. |
|
|
Definition at line 150 of file random.cpp. References DEFAULT, initialized, PlantSeeds(), and STREAMS. |
|
|
Definition at line 163 of file random.cpp. References A256, CHECK, GetSeed(), i, PlantSeeds(), printf, PutSeed(), Random(), SelectStream(), u, and Opie::MM::x. |
|
|
Definition at line 50 of file random.cpp. |
|
|
Definition at line 48 of file random.cpp. |
|
|
Definition at line 49 of file random.cpp. |
1.4.2