Skip to content
DrJonki edited this page Oct 10, 2014 · 1 revision

UtH provides a very basic randomizer with some very basic functions.

Seed

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.

Functions

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.
Clone this wiki locally