ACSUtils Wiki

An ACS library for ZDoom-based ports

User Tools

Site Tools


functions:randompick

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
functions:randompick [2017/07/09 17:40] korshunfunctions:randompick [2017/07/14 18:52] (current) korshun
Line 2: Line 2:
 {{tag>random needs_examples}} {{tag>random needs_examples}}
 ''any RandomPick**N**(any n1, any n2, ...)'' ''any RandomPick**N**(any n1, any n2, ...)''
 +
 +[[:types|any - any type (int, fixed or str)]]
  
 ===== Description ===== ===== Description =====
 Randomly picks one of the arguments and returns its value. Designed to mimic decorate's RandomPick function. Randomly picks one of the arguments and returns its value. Designed to mimic decorate's RandomPick function.
  
-As [[:ACC]] doesn'support functions with variable argument counts, ''RandomPick2'' through ''RandomPick8'' are provided.+As none of the compilers support functions with variable argument counts, ''RandomPick2'' through ''RandomPick8'' are provided.
  
 ===== Examples ===== ===== Examples =====
functions/randompick.1499611242.txt.gz · Last modified: 2017/07/09 17:40 by korshun