Skip to content
PithLab

↑↓ to move · Enter to open · Esc to close

Random Name Picker API

Fairly pick random winners from a list of names (no repeats), or shuffle the names into balanced random teams. Uses a cryptographic random source.

POST /api/v1/tools/random-name-pickerMCP random_name_pickerGeneratorsRandom output

Pick random winners from a list of names without repeats, remove them as you go, or shuffle everyone into balanced teams. Fair, secure and in your browser.

Input

Send these as a JSON object. Unknown fields are rejected.

names
One name per line; blank lines are ignored. (string, up to 200000 characters, required)
mode
pick: choose winners. teams-by-count: make exactly n teams. teams-by-size: teams of at most n people. (string, one of pick, teams-by-count, teams-by-size, default "pick")
n
pick: number of winners. teams-by-count: number of teams. teams-by-size: people per team. (integer, 1 to 10000, default 1)
dedupe
Remove duplicate names (case-insensitive) first. (boolean, default false)
curl https://pithlab.com/api/v1/tools/random-name-picker \n  -H "Authorization: Bearer $PITHLAB_KEY" \n  -H "Content-Type: application/json" \n  -d '{"names":"Ada\nAlan\nGrace\nLinus\nMargaret\nTim","mode":"pick","n":2}'