random weighted

 

 

Weighted random number generator. This node generates a random number with probability as defined by the Weight value. It commonly used along with custom particle attributes used as weight value.

 

 

[Inputs]

 

#Particle Stream - This pin requires a particle stream to be connected. If particle is not available, make sure to change the Seed value by some other means. If using Read Voxel for example, particle is not available for connect and you should connect Voxel to the Seed to get randomization on per voxel basis.

 

Enabled - Enable or disable node evaluation.

 

Weight ??? Controls the probability (0???1) that a particle will pass. For each particle, a random number is generated and compared against this value:

  • 1.0 ??? always passes (100% chance).
  • 0.5 ??? passes about half the time
  • 0.2 ??? passes roughly 20% of the time

 

Higher values increase the likelihood that the particle sets the Pass output to true, while lower values make passing less frequent..

 

Probability Scale ??? Scales the input Weight value which directly affects the probability.

 

Seed - Random number generator seed. Change this value to get different output sequences.

 

 

[Outputs]

 

Pass ??? True value means that particle was within the random number range.