easiest way to create a random list
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
Thanks ;-),
F
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
Like this perhaps:
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
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
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:
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