Hi,
I would like to randomly create an ID and delete it for object creation purpose. What I need is like a random function, with an inlet to pick a number that remove it from the available numbers.
Any clue?
Random
Hi,
I would like to randomly create an ID and delete it for object creation purpose. What I need is like a random function, with an inlet to pick a number that remove it from the available numbers.
Any clue?
I believe [urn] could help you here (don't know if that's vanilla or extended).
|] [] |.| ][|-| -- http://soundcloud.com/domxh
also, check out the guts of [urne] to see how to do it in vanilla objects. The rtc bundle is great for this kind of stuff.
Thanks for the answer.
I have already checked the urn object, but it doesn't really does what I need. I can generate random values without repetition, but can't remove some value from a list of avalaible ones.
Maybe I can create a list, remove some numbers, and then send those to a random, but I don't really know how to make it...
have a look in the list abstractions, there might be something you can get from those.
help->browser->5.reference->list-abs
This is from a while ago. It might help.
|] [] |.| ][|-| -- http://soundcloud.com/domxh
Nice! This is what I needed thank you!
I tried with the list-abs, but it was a pain for me
Oops! Looks like something went wrong!