/zazencodes-skills:random-number-generatorfrom zazencodes-skills
Generates random numbers, dice rolls, choices, shuffles, samples, and secure tokens using Python's standard library. Useful for RNG requests, password candidates, or entropy checks.
Ships in zazencodes-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
Generate random values by running the bundled Python script from this skill. The script uses only Python's standard random and secrets modules and prints JSON by default so results are easy to parse.
Run commands from this skill directory, so scripts/random_number.py resolves relative to this SKILL.md. If the shell is not already in the skill directory, change into the directory containing this file first.
Prefer Python launchers in this order:
python3py -3 on Windowspython only after confirming it is Python 3If Python 3 is unavailable, tell the user that this skill requires Python 3 and do not fake a random result.
python3 scripts/random_number.py random-int --low 1 --high 100
On Windows PowerShell:
py -3 scripts/random_number.py random-int --low 1 --high 100
To generate a batch of random numbers, pass the --size flag:
python3 scripts/random_number.py random-int --low 1 --high 100 --size 5
Random integer (single or batch):
python3 scripts/random_number.py random-int --low 1 --high 6 --size 5
Random float (single or batch):
python3 scripts/random_number.py random-float --low 0 --high 1 --size 5
Choices with replacement:
python3 scripts/random_number.py random-choices --population-json '["red","blue","green"]' --k 2
Weighted choices with replacement:
python3 scripts/random_number.py random-choices --population-json '["red","blue","green"]' --weights-json '[5,2,1]' --k 3
Shuffle a list:
python3 scripts/random_number.py random-shuffle --items-json '[1,2,3,4,5]'
Sample without replacement:
python3 scripts/random_number.py random-sample --population-json '["a","b","c","d"]' --k 2
Secure hex token(s):
python3 scripts/random_number.py secure-token-hex --nbytes 16 --size 3
Secure integer(s) from 0 up to but not including upper-bound:
python3 scripts/random_number.py secure-random-int --upper-bound 1000 --size 5
Use secure-token-hex or secure-random-int for new random password candidates, tokens, invite codes, or any user request that mentions secure, cryptographic, crypto-safe, token, random password, password entropy, or password.
Do not use this skill to accept, store, transform, validate, or repeat existing passwords, API keys, bearer tokens, cookies, or credentials. Only generate new random values on direct user request.
Use the standard random commands for dice, games, simulations, sampling, shuffling, randomized examples, and everyday random selection.
Pass lists through JSON flags such as --population-json, --items-json, and --weights-json. In Bash, zsh, and PowerShell, wrap JSON in single quotes as shown above. For shells that do not support single quotes, escape the double quotes or use a shell that does.
Default output is JSON. Examples:
[42]
[14, 82, 33, 91, 5]
["red", "green"]
["<secure-hex-output>"]
scripts/random_number.py - Command-line wrapper around Python random and secrets standard-library functions. Run python3 scripts/random_number.py --help for the full interface.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
13 skills in this plugin
/adrRead and write Architecture Decision Records in docs/adr/. Use for /adr, when decisions are made, and before changing areas covered by ADRs./ascii-vizAnswer with ASCII diagrams and charts. Use for /ascii-viz, $ascii-viz or requests for ASCII visuals; stays active for the conversation./codex-image-genGenerate or edit raster images via Codex CLI and save them to a path. Use for image generation or editing unless another image backend is specified./diagram-vizDraw diagrams and timelines as images in the ZazenCodes style. Use for architecture or block diagrams, how-something-works pictures and flows; not for data charts or ASCII.npx claudepluginhub zazencodes/skills --plugin zazencodes-skillsOther plugins' skills for the same job