generating random numbers

edited May 2013 in Help request
Need to generate a few random numbers. Searching orx I found:

orxMath_InitRandom()
orxMath_GetRandom*()

My question is this:
- Do I need to InitRandom or is it done for me?
- In case of default initialization, what is used to seed?

Comments

  • edited May 2013
    orx itself won't call InitRandom(), if you want your own random seed, you'll have to call it yourself. It can be called before initializing orx if need be.

    The default seeds are:
    static orxU32 su32X = 123456789, su32Y = 362436069, su32Z = 521288629, su32W = 88675123;
    
Sign In or Register to comment.