Skip to content

DoctorMcKay/node-cointoss

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

cointoss

Toss a cryptographically secure coin.

What?

Exports a function that, when called, returns either true or false randomly and cryptographically securely.

Why?

Because if there's one thing npm needs more of, it's 3-line packages.

How?

const cointoss = require('cointoss');
if (cointoss()) {
	console.log("Heads");
} else {
	console.log("Tails");
}

About

Toss a cryptographically secure coin

Resources

Stars

Watchers

Forks