Choose()

From TinyMUX
Revision as of 21:13, 24 November 2008 by Keegan (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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