Shuffle()

From TinyMUX
Jump to navigation Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

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))