generate_random_choice
Select random items from a list with cryptographically secure randomness. Define the number of choices and allow duplicates for customizable, unbiased results.
Instructions
Randomly select items from a given list using cryptographically secure randomness
Input Schema
Name | Required | Description | Default |
---|---|---|---|
allow_duplicates | No | Whether to allow duplicate selections | |
choices | Yes | Array of items to choose from | |
count | No | Number of items to select |
Input Schema (JSON Schema)
{
"properties": {
"allow_duplicates": {
"default": true,
"description": "Whether to allow duplicate selections",
"type": "boolean"
},
"choices": {
"description": "Array of items to choose from",
"items": {
"type": "string"
},
"minItems": 1,
"type": "array"
},
"count": {
"default": 1,
"description": "Number of items to select",
"minimum": 1,
"type": "integer"
}
},
"required": [
"choices"
],
"type": "object"
}