RandomElementFromList
randomly select elements from a list in Python.
python · Community Common Scripts
Details
| ID | RandomElementFromList |
|---|---|
| Language | python |
| From Version | 6.1.0 |
| Docker Image | demisto/python3:3.12.13.11879924 |
| Tags | transformer |
README
randomly select elements from a list in Python
Script Data
| Name | Description |
|---|---|
| Script Type | python3 |
| Tags | transformer |
Inputs
| Argument Name | Description |
|---|---|
| value | List to pick elements from |
| count | Number of elements to select |
Outputs
There are no outputs for this script.
args: - description: List to pick elements from. isArray: true name: value required: true type: textArea - description: Number of elements to select. name: count required: true comment: randomly select elements from a list in Python. commonfields: id: RandomElementFromList version: -1 dockerimage: demisto/python3:3.12.13.11879924 enabled: true name: RandomElementFromList runas: DBotWeakRole script: '' scripttarget: 0 subtype: python3 tags: - transformer type: python fromversion: 6.1.0 tests: - No tests (auto formatted)