GM: choose
From GMpedia.org Wiki
- The correct title of this article is choose(). It appears incorrectly here because of technical restrictions.
- The correct title of this article is choose(). It appears incorrectly here because of technical restrictions.
Arguments
x1,x2,x3,...
Limitations
none
Note: Please remove limitations and port them in the "Remarks" section at the end of the article.
choose will return, randomly, one of the values in the brackets.
[edit] Example
In the following example, the variable whatroom could hold room1 or room2 or room3. It's a way of choosing random from a list of things. The most choices you can have is 16.
whatroom = choose(room1,room2,room3);
This article was originally found at the Game Maker Knowledge Base, contributed by nickydude.
See the talk page for details
See the talk page for details

