![]() |
#include "sirandom.h"Go to the source code of this file.
Macros | |
| #define | A 16807 /* A "good" multiplier */ |
| #define | M 2147483647 /* Modulus: 2^31 - 1 */ |
| #define | Q 127773 /* M / A */ |
| #define | R 2836 /* M % A */ |
Functions | |
| int | siRandNext (int r) |
| int | siRand () |
| int | siRandPlus1 (int r) |
Variables | |
| int | siSeed = 1 |
| #define A 16807 /* A "good" multiplier */ |
Definition at line 23 of file sirandom.c.
| else L M 2147483647 /* Modulus: 2^31 - 1 */ |
Definition at line 24 of file sirandom.c.
Definition at line 25 of file sirandom.c.
Definition at line 26 of file sirandom.c.
| int siRand | ( | ) |
Definition at line 41 of file sirandom.c.
| int siRandNext | ( | int | r | ) |
Definition at line 31 of file sirandom.c.
| int siRandPlus1 | ( | int | r | ) |
Definition at line 46 of file sirandom.c.
| int siSeed = 1 |
Definition at line 29 of file sirandom.c.