Talk:A CStaffInitBlink
Jump to navigation
Jump to search
I can't really figure what's the deal with pr_blink(). It seems to be an instance of the FRandom class which is the random number generator... but I can't see FRandom's named constructor returning anything. Not that constructors could return anything... -Chromium 12:42, 18 February 2011 (CST)
- Basically, whenever you see a call to a pr_whatever FRandom function, the result is between 0 and 255. Here's how it works:
from m_random.h: // Returns a random number in the range [0,255] int operator()() { return GenRand32() & 255; }