choose<T>(lst: T[]): T
Choose a random item from a list.// decide the best fruit randomly const bestFruit = choose(["apple", "banana", "pear", "watermelon"])
// decide the best fruit randomly const bestFruit = choose(["apple", "banana", "pear", "watermelon"])
Assets
Components
Component Types
Input
Events
Info
Math
Misc
Draw
Level
Plugins
Button Bindings