random_string¶
Hook for random_string. Lists the contents of a directory.
Inputs¶
| Name | Type | Default | Required | Description |
|---|---|---|---|---|
| length | int | 8 | True | Length of the random string. |
| case | str | lower | True | Case of output, one of upper or lower |
| upper | bool | False | True | Flag for upper case. Overrides case. |
Arguments¶
| Position | Argument | Type |
|---|---|---|
| 1 | length | int |
| 2 | case | str |
Returns¶
str
Examples¶
random_string¶
Creates a random string of letters and digits
compact->: random_string
expanded:
->: random_string
length: 4
case: upper
compact: ab7dhfo0
expanded: AB7D