Replies: 2 comments 1 reply
-
I think there might be more "bonsaic" ways of doing it, but I have used a
You can change the range to the number of iterations you want, independently of the number of elements. Since this is random, you might get an uneven distribution (the same number might appear twice or never). If you want a pseudo-random selection where each element is only returned once, you have to pop the list:
Be careful not to use the length of the number list for |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
Hi,
I want to create a workflow where every minute one of 6 numbers (20, 60, 100, 140, 180, 220) is randomly selected and used as an input to a ServoOutput node. Can you help me set up the timer and the random number generator?
Beta Was this translation helpful? Give feedback.
All reactions