anydice.js
Note: AnyDice is not particularly fast; results can take a second or two to come back
API
Simple
const roll = ;// import { roll } from "anydice"; // later... console;
Advanced
const AnyDice = ; // later... const input = `output [highest 1 of 2d20]+10output 3d6 named "result 2"`; const result = await AnyDice;const rolls = result; // [highest 1 of 2d20]+10const possibleValues = result; // 3d6console;console;