easiest way to create a random list

Felix's icon

What is the easiest way to create a random list of X (9 for example) numbers, without repetitions, and between a min - max?.
Example: Random combinations of numbers 1,2,3,4,5,6,7,8,9
Series object from RTC + a counter?
Thanks,
Felix

LoneMonad aka don malone's icon
Felix's icon

Thanks ;-),
F

Felix's icon

And the easiest way to compare two numbers, and pass it through when they are equal?.
Like == , but letting the number pass through...
thanks,
Felix

Mattijs's icon

Like this perhaps:

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

Felix's icon

Thanks,
yes, that is the easiest way i also find ...
I have a problem with the url object, it repeats always the same pattern (look for example to 3 consecutive numbers, bang and look for them again...). How could i change this? and make the pattern really random?.
Felix

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

Stefan Tiedje's icon

Felix wrote:
> Thanks, yes, that is easiest one i also find ... I have a problem
> with the url object, it repeats always the same pattern (look for
> example to 3 consecutive numbers, bang and look for them again...).
> How could i change this? and make the pattern really random?. Felix

As all Max random generators are pseudo random generators, they have the
advantage of creating the same pattern if you seed them with the same
seed. Thats exactly what you are doing...
Just get rid of seed and it will be as random as you wanted it to be...

Stefan

--
Stefan Tiedje------------x-------
--_____-----------|--------------
--(_|_ ----|-----|-----()-------
-- _|_)----|-----()--------------
----------()--------www.ccmix.com

Kim Cascone's icon

the [random] object that comes with Max uses time for the seed if you
leave it at the default value of '0'
or you can set it using something like:

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

On Oct 26, 2006, at 2:33 AM, Stefan Tiedje wrote:

> Felix wrote:
>> Thanks, yes, that is easiest one i also find ... I have a problem
>> with the url object, it repeats always the same pattern (look for
>> example to 3 consecutive numbers, bang and look for them again...).
>> How could i change this? and make the pattern really random?. Felix
>
> As all Max random generators are pseudo random generators, they
> have the advantage of creating the same pattern if you seed them
> with the same seed. Thats exactly what you are doing...
> Just get rid of seed and it will be as random as you wanted it to
> be...
>
> Stefan