Lrand()

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: lrand(lower,upper,count,[,output delim])

Returns a list with count elements separated by output delim (or a space if not specified) of random numbers between lower and upper.

Related Topics: die(), lnum(), pickrand(), rand(), shuffle()

Examples

Generate five random numbers between 3 and 6
> say lrand(3, 6, 5)
You say, "5 3 4 6 3"

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