Fun
Pick Randomly
Pick one or more random items from a list.
GET/api/pick?items=
Query parameters
| Name | Type | Required | Description |
|---|---|---|---|
| items | string | Required | Comma-separated list (or repeat the parameter). Up to 1000 items. |
| count | integer | Optional | How many to pick. Default 1. |
| unique | boolean | Optional | Pick without repeats. Default true; set false to allow repeats. |
Try it
Saved only in this browser. Requests use your key and count toward your quota. Get a key
GET /api/pickExample request
curl "https://your-app.com/api/pick?items=red%2Cgreen%2Cblue&count=2" \
-H "x-api-key: YOUR_API_KEY"Response
{
"picked": ["blue", "green"],
"count": 2,
"from": 3
}