Using a pen and paper to generate random numbers, in cases you don't have dice
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
LICENSE
README.md
bezier.py

README.md

no-dice

Using a pen and paper to generate random numbers, in cases you don't have dice.

Image

Step to generate a dice "roll" from a squiggle

  1. Draw a squiggle.
  2. (optional, if your friend believes you are rain man) Have a friend draw a squiggle on top of yours.
  3. Count the number of times lines intersect in your squiggle
  4. Take that number and divide by the dice size (e.g. 6 for 6-sided dice).
  5. Take the remainder and add 1. That is your roll!

Pseudo-validation using computation

Generate random squiggles using bezier curves (which are kind like real squiggles).

$ python3 -W ignore bezier.py

Check if it passes the tests

Validation using actual squiggles (TBD)