random
Return a random item from the list.
def random(
value: list
) - > any
Return a random item from the list.
Parameters
| Name | Type | Description |
|---|---|---|
| value | list | The sequence or list of items from which to select a random element |
Returns
| Type | Description |
|---|---|
any | A randomly selected element from the input sequence, or an empty string if the sequence is empty |