Skip to content
master
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 

FairFlip

Get a fair coin flip result from a biased coin

Dependencies:

  • Python >= 2

Usage:

Usage python3 fairflip.py <heads_percent>

heads_percent is the chance of HEADS happening from a single coin flip
(The heads bias).  heads_percent is a whole number from 1 and 99.

Examples:
  python3 fairflip.py 60
  python3 fairflip.py 10
  python3 fairflip.py 50

Warning:

There is no error handling, so an error/exception may pop up if values are unexpected

About

Produce a fair coin flip from a biased coin

Resources

License

Releases

No releases published

Packages

No packages published

Languages