Random Item Inserter

Inserts the items based on the probability to the collection cells. Here we use the class names and the probabilities given in the dialog to insert them into the cell. Items with empty names or a probability less or equal to 0 are ignored.

Options

Collection
The items will be inserted into this collection column based on the defined probabilities.
Use seed
When enabled, the random number generation will use a fixed seed value, making the randomization reproducible across multiple executions. When disabled, each execution will produce different random results.
Random seed
The seed value used for random number generation. Use the same seed to get identical random number results across multiple executions. You can enter a custom value or use the random seed generation button below.
Draw seed
Generate a random seed and set it in the Random seed input above for reproducible runs.
Fix list sizes
Keeps the size of the collection column the same if the number of assigned labels is smaller than the original collection size. This means that not all items in the collection will be replaced, but only a subset of them based on the defined probabilities. This can be useful to avoid having too many items in the collection if the probabilities for the label assignment are low.
Normalize probabilities
Normalize the probabilities for the label assignments
Item Probabilities
The probability for each item to be inserted into the collection.
  • Probability: The probability for this item to be inserted. Items with a probability of 0 or less are ignored.
  • Name of item: The name of the item to be inserted. Items with empty names are ignored.

Input Ports

Icon
data containing one collection column.

Output Ports

Icon
The original data with a manipulated collection column.

Popular Predecessors

Views

This node has no views

Workflows

Links

Developers

You want to see the source code for this node? Click the following button and we’ll use our super-powers to find it for you.