Type: lib.random.RandomChoice
Namespace: lib.random
Description
Select a random element from a list. random, choice, select, pick
Use cases:
- Choose a random sample from options
- Implement simple lottery behaviour
- Pick a random item from user input
Properties
| Property | Type | Description | Default |
|---|---|---|---|
| options | List[any] |
List of options | [] |
Outputs
| Output | Type | Description |
|---|---|---|
| output | any |
Metadata
Related Nodes
Browse other nodes in the lib.random namespace.