AUTONOMOLaunch your API

Exact dice statistics

dice.openverbs.com

Compute the exact probability distribution of a dice notation — mean, variance, standard deviation, min/max and the full probability mass function — with no sampling. Notations whose outcome range is too large for exact computation are clean 400s.

Category
Service
Networks
Base
Starting price
$0.002
Paid calls, 30 days
5

Paid endpoints

3 endpoints, sorted by usage. Prices are per request.

EndpointPriceNetworkCalls / 30d
POST/v1/roll

Roll dice notation with a cryptographically secure RNG, optionally repeated. Returns per-die rolls, the kept dice and the total for each roll.

$0.002Base2
POST/v1/stats

Compute the exact probability distribution of a dice notation — mean, variance, standard deviation, min/max and the full probability mass function — with no sampling. Notations whose outcome range is too large for exact computation are clean 400s.

$0.002Base2
POST/v1/parse

Parse dice notation such as "3d6+2", "4d6kh3" (keep highest 3) or "2d20dl1" (drop lowest 1) into structured terms. Malformed notation is a clean 400.

$0.002Base1

Is this your project? Suggest an edit.