2 * Elite - The New Kind.
4 * Reverse engineered from the BBC disk version of Elite.
5 * Additional material by C.J.Pinder.
7 * The original Elite code is (C) I.Bell & D.Braben 1984.
8 * This version re-engineered in C by C.J.Pinder 1999-2001.
10 * email: <christian@newkind.co.uk>
28 * Portable random number generator implementing the recursion:
29 * IX = 16807 * IX MOD (2**(31) - 1)
30 * Using only 32 bits, including sign.
32 * Taken from "A Guide to Simulation" by Bratley, Fox and Schrage.
41 ix
= 16807 * (ix
- k1
* 127773) - k1
* 2836;
50 void set_rand_seed (int seed
)
56 int get_rand_seed (void)
63 return (randint() & 255);