All good stuff.
One thing to think about when pulling a random line from a list, say, is whether or not you want to take only one instance throughout the process. For example, if you have a list of ten lines, and you:
repeat with y = 1 to 10
put any line of yourList into line y of temp
end repeat
You will indeed get a random list as a result, but that list is likely to have duplicates. So to illustrate the distinction between "any" and "random" consider this:
Code: Select all
repeat 10
get random(the number of lines of yourList)
put line it of yourList & return after temp
delete line it of yourList
end repeat
answer temp
Now you get a list of ten lines, assembled randomly, and with no duplicates.
Craig