1 /* 2 Copyright (C) 1994-1995 Apogee Software, Ltd. 3 4 This program is free software; you can redistribute it and/or 5 modify it under the terms of the GNU General Public License 6 as published by the Free Software Foundation; either version 2 7 of the License, or (at your option) any later version. 8 9 This program is distributed in the hope that it will be useful, 10 but WITHOUT ANY WARRANTY; without even the implied warranty of 11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 12 13 See the GNU General Public License for more details. 14 15 You should have received a copy of the GNU General Public License 16 along with this program; if not, write to the Free Software 17 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 18 19 */ 20 #ifndef _rt_rand_public 21 #define _rt_rand_public 22 23 #include "develop.h" 24 25 void InitializeRNG ( void ); 26 int GetRandomSeed ( void ); 27 28 29 #if RANDOMTEST 30 31 int GameRNG ( char * string, int val ); 32 #define GameRandomNumber(string,val) GameRNG(string, val) 33 34 int RNG ( char * string, int val ); 35 #define RandomNumber(string,val) RNG(string, val) 36 37 #else 38 39 int GameRNG ( void ); 40 #define GameRandomNumber(string,val) GameRNG() 41 42 int RNG ( void ); 43 #define RandomNumber(string,val) RNG() 44 45 #endif 46 47 48 49 void SetRNGindex ( int i ); 50 int GetRNGindex ( void ); 51 #endif 52