-
Notifications
You must be signed in to change notification settings - Fork 2
Randomizer
DrJonki edited this page Oct 10, 2014
·
1 revision
UtH provides a very basic randomizer with some very basic functions.
Before you use the Randomizer
functions you should call SetSeed
if you wish to have different results each run. The default argument is the current time(0) value.
There are three static functions for fetching the random values:
-
GetFloat
- Get a random floating point value inside the specified range. -
GetInt
- Get a random integer value inside the specified range. -
InsideCircle
- Get a random point inside a circle of the specified radius.