dice-roll

Generate cryptographically secure random dice outcomes from flexible notation.

6|Updated Apr 5, 2026
One-click install
npx skills add https://github.com/icepeng/agentchan --skill dice-roll
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: dice-roll
Source: https://github.com/icepeng/agentchan/tree/main/example_data/library/templates/tides-of-moonhaven/skills/dice-roll
Command: npx skills add https://github.com/icepeng/agentchan --skill dice-roll

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires node:crypto, and includes scripts (resource) components.

What problem does it solve?

This Skill provides an accurate and trustworthy method for generating random dice rolls, essential for fair game mechanics and decision-making.

Core Features & Use Cases

  • Cryptographically Secure RNG: Uses crypto-based randomness to ensure unbiased dice results.
  • Flexible Dice Notation: Supports various standard and complex dice expressions like 2d6+3, d100, or 4d6kh3.
  • Use Case: Game masters can perform transparent, verifiable dice rolls during online RPG sessions to maintain fairness and credibility.

Quick Start

The dice-roll Skill can be used to perform a 1d20 attack roll with a target DC of 15 by executing: script(file: "skills/dice-roll/scripts/roll.ts", args: ["1d20", "15"])

Frequently Asked Questions about dice-roll

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I generate cryptographically secure dice rolls for RPGs?

Cryptographically secure dice rolls use crypto-based randomness to ensure unbiased RPG outcomes. This Skill leverages secure RNG functions to generate verifiable and transparent results for fair game mechanics and decision processes.

What dice notation formats are supported for tabletop RPG rolls?

Dice notation supports standard and complex expressions like 2d6+3, d100, and 4d6kh3. Flexible parsing allows game masters to execute various tabletop RPG rolls while maintaining fairness and credibility during sessions.

Can I use Node crypto for random number generation in game simulations?

Yes, Node crypto provides the secure RNG functions needed for random number generation in game simulations. This ensures unbiased, verifiable results for probabilistic testing environments and fair game mechanics.

How do I roll a 1d20 against a target DC?

To roll a 1d20 against a target DC of 15, execute the roll script with arguments ["1d20", "15"]. This performs a cryptographically secure random roll and evaluates the outcome against the specified target.

Why use cryptographic randomness instead of standard RNG for dice rolls?

Cryptographic randomness ensures verifiable and unbiased dice results, unlike standard RNG which can be predictable. This provides transparent, trustworthy outcomes essential for fair tabletop RPG mechanics and probabilistic testing.

Does this dice roller work for probabilistic testing environments?

Yes, the dice roller is applicable in probabilistic testing environments and simulations. It provides accurate, trustworthy random generation through secure RNG functions, ensuring unbiased results for decision processes.