## URN - Random number but without repeating?

Jan 19 2007 | 4:01 pm
Not sure what you would call this situation but I'm trying to get the URN object to produce random numbers without repeating them but unfortunately is does repeat them after it as been cleared (after selecting all possible numbers).
How can I stop this from happening so it selects a different random number each time without repeating 2 in a row even when cleared?
Example below.
Many thanks,
Rhys

• Jan 19 2007 | 4:16 pm
On 19 janv. 07, at 17:01, Rhys Perkins wrote:
> > Not sure what you would call this situation but I'm trying to get > the URN object to produce random numbers without repeating them but > unfortunately is does repeat them after it as been cleared (after > selecting all possible numbers). > > How can I stop this from happening so it selects a different random > number each time without repeating 2 in a row even when cleared?
Have a look to the examples patches, there's an abstraction called urn-jb which avoid this repetition.
Best, ej
• Jan 19 2007 | 4:24 pm
Perfect, thanks.
• Jan 19 2007 | 4:25 pm
?
if you bang that 3 times, it works. The third bang resets the counter by sending clear, which removes any 'saved' state.
How do you plan on banging more than 3 times, with a range of 0 - 2, without the object outputting duplicates?
if you bang it the 4th time, and it has outputted 0, 1 and 2.. what should it do?
On Jan 19, 2007, at 11:01 AM, Rhys Perkins wrote:
> > Not sure what you would call this situation but I'm trying to get > the URN object to produce random numbers without repeating them but > unfortunately is does repeat them after it as been cleared (after > selecting all possible numbers). > > How can I stop this from happening so it selects a different random > number each time without repeating 2 in a row even when cleared? > > Example below. > > Many thanks, > > Rhys > > > max v2; >
v a d e //