Número al azar o sorteo de una lista
random-pickGenera enteros aleatorios en un rango inclusivo o elige n elementos de una lista, con o sin repetición; con semilla el resultado es reproducible. Cuándo: hay que transformar, comparar o revisar con exactitud datos estructurados (JSON, CSV, YAML, XML, arreglos). No para: mezclar un arreglo (array-shuffle). Efectos secundarios: ninguno (solo lectura, sin red, sin estado guardado). No determinista: aleatorio salvo que se dé seed. Límites: entrada JSON de hasta 64 KB, 1 s por llamada, resultado de hasta 1 MB.
EN: Draws random integers in an inclusive range, or picks n items from a list, with or without repetition, using secure randomness; with a seed the result is reproducible (HMAC-SHA256 stream). When: structured data (JSON, CSV, YAML, XML, arrays) has to be transformed, compared or checked exactly. Not for: shuffling an array (array-shuffle). Side effects: none (read-only, no network access, no stored state). Not deterministic: random unless seed is given. [EN completo / full EN: inputSchema.description]
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| max | No | Largest integer (mode int) (integer; optional; default 100; min -9007199254740991; max 9007199254740991). | |
| min | No | Smallest integer (mode int) (integer; optional; default 1; min -9007199254740991; max 9007199254740991). | |
| mode | No | int: integers in [min, max]; items: pick from items (optional; one of: int, items; default "int"). | int |
| seed | No | Seed for reproducible output (string; optional; up to 200 chars). | |
| count | No | How many values or items (integer; optional; default 1; min 1; max 1000). | |
| items | No | Items to pick from (mode items) (array; optional). | |
| unique | No | Without repetition (boolean; optional; default true). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| aviso | No | ||
| seeded | No | ||
| values | No | any JSON value | |
| indices | No |