Skip to content

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

License

Notifications You must be signed in to change notification settings

schollz/no-dice

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

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)

About

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages