Mercurial > mm7
diff Engine/Random.h @ 2499:68cdef6879a0
engine folder
author | Ritor1 |
---|---|
date | Fri, 19 Sep 2014 02:57:42 +0600 |
parents | |
children |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Engine/Random.h Fri Sep 19 02:57:42 2014 +0600 @@ -0,0 +1,31 @@ +#pragma once + + +/* 304 */ +#pragma pack(push, 1) +struct Random +{ + //----- (004BE365) -------------------------------------------------------- + inline Random() + { + Initialize(0x5CCE1E47u); + min = 0; + range = 99; + } + + + void SetRange(int min, int max); + double GetRandom(); + int GetInRange(); + void Initialize(int seed); + + double field_0[5]; + int min; + int range; +}; +#pragma pack(pop) + + + + +extern struct Random *pRnd; // idb \ No newline at end of file