automatically fill a coll with the right syntax from a message or text file ?

I’m making an ‘indian name generator’ randomly choosing from three lists (adj1, name, adj2) and I’m looking for a way of filling the three ‘coll’ objects I use to pick the random elements from, but without having to type ‘1, sequoia; 2, …;). So I thought maybe this could be possible from a text file or message because my lists are about 300 words each for now. Any smart solution ?

To Chris : here’s a short sample. The patch above doesn’t work, I’m now trying out figure out why. I think there are missing arguments for the counter and a way to send bangs to it to make it add the index.

Attachments:

To Chris : ok, so now I’ve got this which seems smart to me (I’m a max beginner) EXCEPT that the first element of the text file is indexed as the last in the ‘coll’. Don’t understand why for now…
I add a new text file as my patch works (I imagine so but maybe I’m wrong) because each word is a on a different line. Is there a way to do the same with just spaces between words in the list ?
btw, just noticed your name in the uzi help file, so I guess you’re the one to help me :-)

— Pasted Max Patch, click to expand. —

Copy all of the following text. Then, in Max, select New From Clipboard.

Sorry Luke, your patch works, it’s just that I had built mine besides sharing the same coll argument, hence the strange results I got as the two contents got mixed up. Now I’ve got your solution and mine, are there practical differences between the two ?