API for flipping a coin
To run this locally, you will need to run the following
npm i
npm start
Once running you can obtain the outcome of a coin flip by browsing to http://localhost:3000/flip
To test this and get the statistics, based on betting a value of 10, flipping a coin 10^6 times and always choosing heads, run
npm test