Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int gamerand(void)
- {
- s_GameRand_High = (s_GameRand_High << 16) + (s_GameRand_High >> 16);
- s_GameRand_High += s_GameRand_Low;
- s_GameRand_Low += s_GameRand_High;
- return s_GameRand_High;
- }
- void sgamerand(unsigned int seed)
- {
- s_GameRand_High = seed;
- s_GameRand_Low = seed ^ 0x49616E42;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement