I’m currently using urn to create random numbers without any duplicates.

Is there a way to reintroduce the possibility that a specific number will be created without clearing all of the numbers that have been created?

Thanks

Jack

]]>for example you count how many numbers are still in the urn and then you add

a[random] before the urn which bangs the reintroduced number with the same probability of the remaining numbers in urn. i mean if 100 numbers are left

you set the random to 101 and select one number to bang the reintroduced, the rest bangs the urn. just my first thought. ]]>

Let me try and be a bit more clear.

for example:

If I use urn with an argument of 10 and I generate the numbers 3, 7, and 9.

Is there a way to reset urn so 3 is a possibility again but 7 and 9 still aren’t?

Does that make it any clearer?

Does that make any sense?

Jack

]]>– Pasted Max Patch, click to expand. –

]]>
Much appreciated

I’ll work on this.

Jack

]]>