Skip to main content

Roll the Dice

Plover text macros to roll dice, flip a coin, and take chances.

Installation

Install from the Plover plugins manager.

Usage

Meta / Macro Name Description
{:roll:range:1:100} Get a random integer in the provided range (in this example, from 1 to 100, inclusive).
{:roll:choice:option1:option2:etc} Randomly write a choice from the options provided (in this example, option1, option2, and etc). Spaces are allowed and the word will respect the current capitalization state.
{:roll:d6} Roll a six-sided die. You can replace "6" with any positive whole number. Equivalent to {:roll:range:1:6}.
{:roll:d10} Roll a 10-sided die. Equivalent to {:roll:range:0:9}.
{:roll:d20} Roll a 20-sided die. Equivalent to {:roll:range:1:20}.
{:roll:coin} Flip a coin. Equivalent to {:roll:choice:heads:tails}.
{:roll:8ball} Ask the Magic 8-Ball a question.

Examples

You can mix these metas into your text.

{
  "RO*L": "I roll a d20... the result is {:roll:d20}",
  "KO*EUPB": "Heads or tails{?}{:roll:coin}{!}",
  "SAO*UR": "{:roll:choice:yep:sure:okay:fine by me}"
}

Metadata

Release files for plover-roll-the-dice 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for plover-roll-the-dice 0.1.0
File Size Uploaded
plover_roll_the_dice-0.1.0.tar.gz 4.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for plover-roll-the-dice 0.1.0
File Interpreter ABI Platform
plover_roll_the_dice-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 8.8 kB

Release files / plover_roll_the_dice-0.1.0.tar.gz

Download URL plover_roll_the_dice-0.1.0.tar.gz
Size 4.5 kB
Tags Source
SHA-256 checksum
How to use checksums
96e50e543e0677350936c2fd253e247fb3afdfcbd287136187f150e399694c17
BLAKE2b-256 checksum
How to use checksums
c394511bd46dc0030a554d02217604ca5c96218187a85e945e5d8ff1c4165d5d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.1 importlib_metadata/3.10.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.8.9

Release files / plover_roll_the_dice-0.1.0-py3-none-any.whl

Download URL plover_roll_the_dice-0.1.0-py3-none-any.whl
Size 4.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
252d8c336a1e68e5f7d035091e2f3bf7880a47eb7a72f02e05db6bac211a66b7
BLAKE2b-256 checksum
How to use checksums
c3227ce94574a690d9697f7f5669e7813905bed2e64fae19d8947bdb4f6fa537
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.1 importlib_metadata/3.10.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.8.9

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files

0.0.2

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page