Altair RISE
A program to recognize and reward our most engaged community members
Nominate Yourself Now!
Home
Discussions
Community Q&A
Select by Random
MuehliMan
Hello RM community,
I encountered a strange problem with the operator "Seleect by Random". I use it to select 1 attribute out of a set of various. I want to randomly select 1 attribute and process it. So I set the number of attributes to 1 and check "Use local random seed". I use Loop Parameter to iteratively change the local random seed.
Strangely, always the same attribute is selected. How can I manage to make RM select 1 RANDOM attribute in a loop?
I can provide an example code if needed.
Cheers,
Markus
Find more posts tagged with
AI Studio
Accepted answers
All comments
colo
Hi Markus,
I never used this operator before so I just tested it
In my case it seems that always only the last attribute is selected (tested it with "Generate Data" and 100 attributes). Changing the local random seed or deactivating the use of a local random seed doesn't change anything. If I select more than one attribute all the others vary depending on the seed value. But the last attribute is always present. Seems like a little bug in the operator to me...
Regards
Matthias
MuehliMan
Hi,
yes, you are right. Knowing this I could build a workaround:
I selected 2 attributes and removed the 2nd one (which is the first chosen one).
However, I hope that the operator can be fixed for the next versions.
Cheers,
Markus
land
Hi,
right, there was a "-1" added to the maximum index to be deleted, causing the last attribute to be never deleted. Thanks for the hint, I fixed this.
Greetings,
Sebastian
Quick Links
All Categories
Recent Discussions
Activity
Unanswered
日本語 (Japanese)
한국어(Korean)
Groups