diff options
Diffstat (limited to 'npc/functions/RNGesus.txt')
-rw-r--r-- | npc/functions/RNGesus.txt | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/npc/functions/RNGesus.txt b/npc/functions/RNGesus.txt deleted file mode 100644 index f71c2f28a..000000000 --- a/npc/functions/RNGesus.txt +++ /dev/null @@ -1,23 +0,0 @@ -// Evol functions. -// Authors: -// gumi -// Description: -// Randomization helper functions. - - - -// any(<arg>{, ...<arg>}) -// returns one argument randomly - -function script any { - return getarg(rand(getargcount())); -} - - - -// any_of(<array>) -// returns any member of the array - -function script any_of { - return getelementofarray(getarg(0), getarrayindex(getarg(0)) + rand(getarraysize(getarg(0)) - getarrayindex(getarg(0)))); -} |