A model can't produce genuinely unpredictable values; this draws real randomness from a secure generator.
Cryptographically-strong randomness: random integers in a range, random choices and samples from a list, shuffling, and random strings or tokens. Drawn from a secure generator, since a model cannot produce genuinely unpredictable values.
Length of the string. Defaults to 16.
Named character set. Defaults to alphanumeric. Ignored if 'alphabet' is given.
Custom set of characters to draw from. Overrides 'charset'.
curl -X POST "https://skill.askfaro.com/skills/random/run" \
-H "Authorization: Bearer faro_<your_key>" \
-H "Content-Type: application/json" \
-d '{
"intent": {
"prompt": "Generate a 32-character random token"
}
}'askfaro describe random/random.string
Install pip install askfaro-cli, then askfaro auth login.
How many items to pick. Defaults to 1.
The list of items to choose from.
Sample without replacement (no repeats). Defaults to false.
curl -X POST "https://skill.askfaro.com/skills/random/run" \
-H "Authorization: Bearer faro_<your_key>" \
-H "Content-Type: application/json" \
-d '{
"intent": {
"prompt": "Pick a random name from this list"
}
}'askfaro describe random/random.choice
Install pip install askfaro-cli, then askfaro auth login.
The list of items to shuffle.
curl -X POST "https://skill.askfaro.com/skills/random/run" \
-H "Authorization: Bearer faro_<your_key>" \
-H "Content-Type: application/json" \
-d '{
"intent": {
"prompt": "Shuffle this list"
}
}'askfaro describe random/random.shuffle
Install pip install askfaro-cli, then askfaro auth login.
Upper bound (inclusive).
Lower bound (inclusive).
How many integers to generate. Defaults to 1.
curl -X POST "https://skill.askfaro.com/skills/random/run" \
-H "Authorization: Bearer faro_<your_key>" \
-H "Content-Type: application/json" \
-d '{
"intent": {
"prompt": "Roll a six-sided die"
}
}'askfaro describe random/random.integer
Install pip install askfaro-cli, then askfaro auth login.