中文
Node Documentation

Random choice

DataTarget independentrandom.choice

Observe one unbiased item from a non-empty typed list and persist the result.

Example use

Choose one item randomly from a nonempty list of candidate strings.

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

Listlistlist<$T>

The list to operate on, with elements matching its declared element type.

RequiredDefault: None

Data outputs 1

ResultresultMatching type inferred from connections

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

Version and node identity

Version 1.0.0

sha256:869c578df97ceeed3568fccc9c47332cdd342adf8f94550ec26c5dac3d182a83