#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 | 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) |
| 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 43 of file random.cpp. Referenced by PlantSeeds(), and TestRandom(). |
|
|
Definition at line 41 of file random.cpp. Referenced by TestRandom(). |
|
|
Definition at line 44 of file random.cpp. Referenced by Opie::OBackendFactory< T >::create(), Opie::OPimAccessFactory< T >::defaultAccess(), Opie::OBackendFactory< T >::defaultBackend(), and SelectStream(). |
|
|
Definition at line 39 of file random.cpp. Referenced by PlantSeeds(), PutSeed(), and Random(). |
|
|
Definition at line 40 of file random.cpp. Referenced by Random(). |
|
|
Definition at line 42 of file random.cpp. Referenced by PlantSeeds(), and SelectStream(). |
|
|
Definition at line 129 of file random.cpp. Referenced by TestRandom(). |
|
|
Definition at line 71 of file random.cpp. Referenced by SelectStream(), and TestRandom(). |
|
|
Definition at line 101 of file random.cpp. Referenced by PlantSeeds(), SFCave::setSeed(), Game::setSeed(), and TestRandom(). |
|
|
Definition at line 51 of file random.cpp. Referenced by StarField::init(), StarField::newStar(), SFCave::nextInt(), nextInteger(), Dasher::CDasherModel::Tap_on_display(), and TestRandom(). |
|
|
Definition at line 140 of file random.cpp. Referenced by PlantSeeds(), and TestRandom(). |
|
|
Definition at line 153 of file random.cpp. |
|
|
Definition at line 48 of file random.cpp. Referenced by PlantSeeds(), and SelectStream(). |
|
|
Definition at line 46 of file random.cpp. Referenced by _random(), GetSeed(), PlantSeeds(), PutSeed(), and Random(). |
|
1.4.2