Choose(): Difference between revisions

From TinyMUX
Jump to navigation Jump to search
Keegan (talk | contribs)
No edit summary
 
(No difference)

Latest revision as of 21:13, 24 November 2008

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