🪙 Simple Coin module, Just Flip!
coin is a module that only helps generate random numbers between 0 and 1.
It's simple and easy to use.
coin is self-contained. The module has no dependencies
- Test
$ make test
- Installation
$ make
$ pip3 install dist/[module name].whl
from coin import coin
new_coin = coin.Coin()
print(new_coin.flip())
# 0 or 1
new_coin.set_side(1)
print(new_coin.get_side())
# 1