Description

The WeightGen Generator defines a percentage between 1 and 100 to determine how often values generated from variable1 will be selected over values generated from variable2. 


Parameters

The following parameters may be configured for the WeightGen Generator. Items with an asterisk* are required. 

  • percentage* - Defines the weight for selected variable1 over variable2.

  • variable1* - Defines a constant or reference to another generated value.

  • variable2* - Defines a constant or a reference to another generated value.

  • seed - Defines an optional seed for randomization.


Example 1: Two Colors with Variable1 Color Chosen 25 Percent of the Time

For this example, two ListGen Generators have been linked to the WeightGen Generator. These two Generators generate 1 color: 

  • First Generator = green
  • Second Genartor = red


The WeightGen Generator references these Generators for variable1 and variable2 and has been configured to chose variable1 25 percent of the time. 



First ListGen Generator configuration: 



Second ListGen Generator configuration: 



Sample Output