Random #'s
Dar Scott
dsc at swcp.com
Thu Jan 27 17:21:09 EST 2005
On Jan 27, 2005, at 2:31 AM, D.Rothe wrote:
> How can I include only unique numbers?
Here is an interesting variation:
on mouseUp
put rlist()
end mouseUp
function rlist
put "1,2,3,4,5,6,7,8,9,10" into x
sort items of x by random(10000)
return item 1 to 6 of x
end rlist
Dar
**********************************************
DSC (Dar Scott Consulting & Dar's Lab)
http://www.swcp.com/dsc/
Programming Services and Software
**********************************************
More information about the use-livecode
mailing list