中文
Node Documentation

Random boolean

DataTarget independentrandom.boolean

Observe a true/false sample using an explicit probability from zero to one.

Example use

Generate a boolean sample with probability 0.5 to choose between two test paths.

Node preview

Right-drag to pan and scroll to zoom. Expand inputs and edit parameters to see how ports change. This preview does not run the node; reopening the page restores the example.

Loading node preview…

Data inputs 1

ProbabilityprobabilityNumber

The probability of true; 0 never yields true and 1 always does.

Default availableDefault: 0.5

Data outputs 1

ResultresultBoolean

The result of this data operation, with its type determined by the matching inputs.

Version and node identity

Version 1.0.0

sha256:a3834fb4ff8cee4e8bfdc97c7f97899494121f4d9e3ade6043c09739a4458c95