draw_lottery
Randomly selects one or multiple items from a provided list of options, with control over selection count and duplicate handling.
Instructions
从给定的选项列表中随机抽取一个或多个结果
Input Schema
Name | Required | Description | Default |
---|---|---|---|
allow_duplicate | No | 是否允许重复抽取,默认为false | |
count | No | 抽取数量,默认为1 | |
options | Yes | 抽签选项列表 |
Input Schema (JSON Schema)
{
"properties": {
"allow_duplicate": {
"default": false,
"description": "是否允许重复抽取,默认为false",
"type": "boolean"
},
"count": {
"default": 1,
"description": "抽取数量,默认为1",
"type": "number"
},
"options": {
"description": "抽签选项列表",
"items": {
"type": "string"
},
"type": "array"
}
},
"required": [
"options"
],
"type": "object"
}