Random #s

Mark Smith mark at maseurope.net
Thu Jan 27 06:25:42 EST 2005


How about something like:

repeat until the number of items in tRnum = 5
put random(10) into tRand
if tRand is not among the items of tRnum then put tRand & comma after 
tRnum
end repeat

Cheers,

Mark

On 27 Jan 2005, at 10:34, use-revolution-request at lists.runrev.com wrote:

> repeat 5 times --generate list of 5 random numbers between 1-10
> put random(10) & "," after tRnum
> end repeat
> delete last char of tRnum --delete last comma
> put tRnum into fld "numbers"



More information about the Use-livecode mailing list