Toggle navigation
Login
Register
Itoo Software Forum
»
RailClone
»
RailClone Lite
»
Expression for Weighted Randomization
« previous
next »
Print
Pages: [
1
]
Author
Topic: Expression for Weighted Randomization (Read 8923 times)
SeanRedmond
Newbie
Posts: 19
Expression for Weighted Randomization
«
on:
September 27, 2022, 12:32:34 AM »
I'm trying to write an expression or node group that will let me select from input segments randomly, but with weights for added control.. I could use a selector and double up inputs but that doesn't allow as much control + gets pretty clunky. Does anyone have any solutions? Here is the solution I'm trying to translate to Railclone (and my poor attempt is there too).
https://imgur.com/sQDutex
https://imgur.com/S7ygL1x
Thanks!!
Logged
Paul Roberts
iToo Software
Hero Member
Posts: 3045
Re: Expression for Weighted Randomization
«
Reply #1 on:
September 27, 2022, 09:23:12 AM »
HI,
If it's segments that you're trying to randomise, could you use the Random node? It already has built-in probability settings (called Presence)
Cheers,
Paul
Logged
Paul Roberts
iToo Software
SeanRedmond
Newbie
Posts: 19
Re: Expression for Weighted Randomization
«
Reply #2 on:
September 27, 2022, 03:13:11 PM »
Well this is embarrassing
I had no idea that existed.
Thank you so much!
Logged
Print
Pages: [
1
]
« previous
next »
Itoo Software Forum
»
RailClone
»
RailClone Lite
»
Expression for Weighted Randomization
×
Welcome,Guest
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length