URN - Random number but without repeating?
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
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
Perfect, thanks.
?
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 //
www.vade.info
abstrakt.vade.info
Apologies. I read this too fast and missed
>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?
You could rig something with 'change' object.
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 //
www.vade.info
abstrakt.vade.info
karllheinz essl has a set of objects called RTC library (www.essl.at )
there an object called [random-norep] that creates a random number sequenze within a range specified by the argument and doesnt repeat any one number before its output all others. (serial number sequence)
have fun
WIll