Hallo, Jack hat gesagt: // Jack wrote:
I just make this abstraction : [list-unique-random] to get a list with random numbers (integers). I didn't see it in the list-abs or in sfruit (am i wrong ?).
You can determine :
- the range of the random number with an argument or dynamically.
- the size wanted of you list with a message.
Maybe, this is not an optimized abstraction, so people can modify it. Frank, if you want, you can modify it (my english is not very good) and add it to list-abs.
Thanks a lot for it, Jack. I guess, an object like this would be good to have in list-abs. I've used the functionality in the past, but never bothered with an abstraction. I have used my urne.pd then, which is in the "purepd" section on Sourceforge and a clone of Max'/Cyclone's [urn] (but not zexy's [urn]!). It seems to deal a bit better with huge numbers like building a list of 1000 unique numbers without stack overflows. It's attached.
Frank