[PD] Random without repeating numbers

Kjetil S. Matheussen k.s.matheussen at notam02.no
Thu Nov 28 14:44:44 CET 2002


On Thu, 28 Nov 2002, Enrique Franco wrote:

> Hi,
>
> Does anyone knows how to get the random object working without repeating
> numbers?
> I mean, for instance, if the random range is 5 I want to get a different
> number each time.
>
Look at the example-patch #8 for my k_cext plugin.
After the first line, insert the following:
srand(time(NULL));
And there you have it. :)


-- 





More information about the Pd-list mailing list