Random

From King Arthur's Gold Wiki
Revision as of 23:25, 6 September 2012 by Shadlington (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Returns a pseudo-random int in the range 0 to the given max int.


This method is part of the Maths namespace so you need to prefix calls to it with 'Maths::'.

This method has two variants. One of them also accepts a seed.

int Maths::Random(int max)
int Maths::Random(u32 seed, u32 max)