Shuffle()

From TinyMUX
Revision as of 05:55, 17 January 2006 by Ian (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Description

FUNCTION: shuffle(word1 word2 <...wordN[,idelim [,odelim]])

This function shuffles the order of words in a list, returning a random permutation of its elements.

Related Topics: die(), lrand(), pickrand(), rand()

Examples

> say shuffle(foo bar baz gleep)
You say "baz foo gleep bar"


(--Soylent 01:53, 3 December 2005 (EST))