FastRandom

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

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

Returns a seemingly-random (much less random than Random, though it is faster) 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::'.

int Maths::FastRandom(int max, int seed)