In file miscfx.h:

#define rnd

(num)

A simple way to get (pseudo-)random numbers

Documentation

A simple way to get (pseudo-)random numbers

This macro is just a wrapper for the C function rand(). DO NOT USE THIS FUNCTION FOR RANDOMNESS-SENSITIVE TASKS LIKE KEY GENERATION.

Parameters:
num - The maximum random number (plus 1) that will be generated.
Returns:
A (pseudo-)random number between 0 and num-1.
See Also:
randomize()

Alphabetic index



This page was generated with the help of DOC++.