ACSUtils Wiki

An ACS library for ZDoom-based ports

User Tools

Site Tools


functions:randompick

This is an old revision of the document!


Table of Contents

RandomPick

any RandomPickN(any n1, any n2, …)

Description

Randomly picks one of the arguments and returns its value. Designed to mimic decorate's RandomPick function.

As ACC doesn't support functions with variable argument counts, RandomPick2 through RandomPick8 are provided.

Examples

str number = RandomPick3("one", "two", "three");
functions/randompick.1499611242.txt.gz · Last modified: 2017/07/09 17:40 by korshun