Choose()

From TinyMUX
Jump to navigation Jump to search

CHOOSE()

 FUNCTION: choose(<item list>, <weight list>[, <delim>])
 This function picks an item from <item list> at random controlled by the
 distribution given in <weight list>.
 Examples:
   > think choose(1 2 3,1 0 0)
   1