Generate random numbers without duplicates in audio rate

all's icon

Hello,

I use a tiny patch to generate random numbers, between 0 and 3, in audio rate.
You can check this one below (copy compressed).
I would like to generate random numbers without duplicates, as the [urn] object, but still in audio rate.
What is the best way to do this ? I don't have idea....

Thank you for your help.
Best,
Alex

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

bertrandfraysse's icon
jninek's icon

Is one of the requirements that it be triggered or clocked?