tossacoin
v1.0.2
Published
To view the results of a coin toss as Head or Tails every time one flips it.
Downloads
3
Maintainers
Readme
Toss a coin
To view the results of a coin toss as Head or Tails every time one flips it.
const coin = require("tossacoin");
coin.toss(); // returns Heads or Tails
coin.isHead(); // returns boolean True or False
coin.isTail(); // returns boolean True or False