/coin

Simple Coin module, Just Flip!

Primary LanguagePythonOtherNOASSERTION

coin

🪙 Simple Coin module, Just Flip!

Desctiption

coin is a module that only helps generate random numbers between 0 and 1.

It's simple and easy to use.

Dependencies

coin is self-contained. The module has no dependencies

Test & Installation

  1. Test
$ make test
  1. Installation
$ make
$ pip3 install dist/[module name].whl

Usage

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