GetRandomDelay(float, float)
Generates a random number between two values used for time delays.
float GetRandomDelay( float fMinimumTime = 0.4, float fMaximumTime = 1.1 );
Parameters
fMinimumTime
Minimum delay time. (Default: 0.4)
fMaximumTime
Maximum delay time. (Default: 1.1)
Description
Generates a random number between fMinimumTime and fMaximumTime (default 0.4 and 1.1, respectively), unless fMinimumTime is greater than fMaximumTime, in which case 0.0 is always returned.
Known Bugs
Never returns fMinimumTime.
Requirements
#include "nw_i0_spells"
Version
1.29
See Also
functions: | Random |
categories: | Math Functions | Time Functions |
author: Charles Feduke, editor: ShaDoOoW