Displaying words out of a coll?

Dekkuran's icon

I have a coll which has stored in it a list of words. I want max to randomly display one of the words in the coll onscreen. However, I can't find a way to do the displaying part of this. All the things like text box require a "set" message sent to them which doesn't itself seem to take an argument which might contain the word which I want to display. Is there anything that can do this? Where I can just get the input out of my coll and display it simply on screen as text?

(Also whenever I get my word out of coll into a message box it is prefaced by the word "symbol"? - any ideas why this might be happening?)

Oli Mason's icon

Hi there,

Max Patch
Copy patch and select New From Clipboard in Max.

This should do it, if not let me know!

Oli Mason's icon
Max Patch
Copy patch and select New From Clipboard in Max.

Here's a slightly better patch that can sort float, ints, and symbols.

keepsound's icon

There are many ways to do it

Max Patch
Copy patch and select New From Clipboard in Max.

`

Dekkuran's icon

Thanks so much everyone.