Random conundrum

Sep 9, 2011 at 10:52pm

Random conundrum

What am I missing here?
cheers
Roger

– Pasted Max Patch, click to expand. –
#58825
Sep 10, 2011 at 12:37am

The index of Uxi comes out before the bang, and you’re using the index to pack things into the coll, so consequently, you’re packing the previous value. If you use an int on the index, and clock it out with the random, you will get what you expect..

#211439
Sep 10, 2011 at 12:34pm

Thanks – couldn’t see for looking! I’ve been using an abstraction for years that had that little bug in it, and never noticed until yesterday; I feel cleaner now!
Cheers
Roger

#211440

You must be logged in to reply to this topic.