Itoo Software Forum

Author Topic: Question about the exact amount of "Randomize"  (Read 575 times)

QN1156

  • Newbie
  • *
  • Posts: 34
Question about the exact amount of "Randomize"
« on: July 20, 2022, 09:13:11 AM »
Hi:
I want to know if "Randomize" can achieve the exact number of each segment. The current Presence mode cannot achieve the exact number.

Paul Roberts

  • iToo Software
  • Hero Member
  • *****
  • Posts: 2993
Re: Question about the exact amount of "Randomize"
« Reply #1 on: July 20, 2022, 09:16:09 AM »
I'm afraid not - the presence value is just a probability indicator, and the node isn't able to specify a specific number of times something should be used.

Best,

Paul
Paul Roberts
iToo Software

QN1156

  • Newbie
  • *
  • Posts: 34
Re: Question about the exact amount of "Randomize"
« Reply #2 on: July 20, 2022, 09:18:33 AM »
Is there any other way to achieve this situation?

Paul Roberts

  • iToo Software
  • Hero Member
  • *****
  • Posts: 2993
Re: Question about the exact amount of "Randomize"
« Reply #3 on: July 20, 2022, 10:24:57 AM »
Please see the attached for a possible "hack"

I'm afraid it doesn't work with Evenly segments, so you'd have to wire it to the Default input. Basically it uses Sequence nodes to keep track of how many times a segment has been chosen. If the count is exceeded, it adds a very small gap instead. If several gaps appear, then a null segment is used instead which stops the array.

I hope it helps,

Paul
Paul Roberts
iToo Software

QN1156

  • Newbie
  • *
  • Posts: 34
Re: Question about the exact amount of "Randomize"
« Reply #4 on: July 20, 2022, 12:27:38 PM »
Thanks, this worked great for me, but I think it would be nice if "Sequence" could add a random ordering feature, which would solve this problem easily.

Paul Roberts

  • iToo Software
  • Hero Member
  • *****
  • Posts: 2993
Re: Question about the exact amount of "Randomize"
« Reply #5 on: July 20, 2022, 12:41:49 PM »
No problem - I'll pass on the suggestion.

Cheers,
Paul
Paul Roberts
iToo Software