Itoo Software Forum

RailClone => RailClone Pro (*) => Topic started by: QN1156 on July 20, 2022, 09:13:11 AM

Title: Question about the exact amount of "Randomize"
Post by: QN1156 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.
Title: Re: Question about the exact amount of "Randomize"
Post by: Paul Roberts 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
Title: Re: Question about the exact amount of "Randomize"
Post by: QN1156 on July 20, 2022, 09:18:33 AM
Is there any other way to achieve this situation?
Title: Re: Question about the exact amount of "Randomize"
Post by: Paul Roberts 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
Title: Re: Question about the exact amount of "Randomize"
Post by: QN1156 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.
Title: Re: Question about the exact amount of "Randomize"
Post by: Paul Roberts on July 20, 2022, 12:41:49 PM
No problem - I'll pass on the suggestion.

Cheers,
Paul