Using a pen and paper to generate random numbers, in cases you don't have dice.
Step to generate a dice "roll" from a squiggle
- Draw a squiggle.
- (optional, if your friend believes you are rain man) Have a friend draw a squiggle on top of yours.
- Count the number of times lines intersect in your squiggle
- Take that number and divide by the dice size (e.g. 6 for 6-sided dice).
- 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