Random Boolean Assigner

This node will generate a column containing boolean values. Either the probability is defined that the column value is true, or the number of true values in the column is defined.

Options

Choose probability method
Select whether to specify the probability that a value is true, or the fixed number of true values in the column.
Probability
The probability that a generated value is true. Must be between 0 and 1 (inclusive).
Event number
Defines the probability that a generated value is true based on the number of input rows:
Nr. of events / Nr. of rows. Must be non-negative.
Column name
The name of the new column containing the randomly generated boolean values.
Use seed
When enabled, a fixed seed is used to produce a deterministic result. When disabled, each execution may produce different results.
Seed
The random seed to produce a deterministic result. Only used when "Use seed" is enabled.
Draw seed
Generate a random seed and set it in the random seed input above for reproducible runs.

Input Ports

Icon
Some data.

Output Ports

Icon
one additional column containing the random boolean value.

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.