Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- DWORD Seed = 0;
- void SetSeed(DWORD s)
- {
- //Get seed address
- Seed = s;
- }
- DWORD PseudoRand()
- {
- //Get seed address
- DWORD Ret = Seed * 0x343FD;
- Ret += 0x269EC3;
- Seed = Ret;
- Ret >>= 0x10;
- Ret &= 0x7FFF;
- return Ret;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement