ACTION_RANDOM
Generates random integers, decimals, or booleans for automation workflows, with configurable ranges, variable output, and error handling.
Instructions
生成随机整数、小数或布尔值。输出:random_value, random_success。int 含两端,float 为 [min, max);min > max 时自动交换。。字符串参数支持 ${var} 插值;结果以变量快照 JSON 返回。
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| max | No | 最大值(只取整数部分)(默认 100) | |
| min | No | 最小值(只取整数部分)(默认 0) | |
| type | No | 结果类型(默认 int) | |
| require | No | 执行后要求为 true 的变量名(如 click_success),不满足按出错处理 | |
| on_error | No | 节点出错时:skip=跳过继续(默认),stop=停止整个工作流 | |
| output_var | No | 结果变量名(默认 random_value) | |
| node_timeout_ms | No | 单节点超时毫秒,0=不限;默认 30 分钟 |