daily pastebin goal
36%
SHARE
TWEET

Untitled

a guest Jun 19th, 2017 47 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function sample(coin) {
  2.   var heads = 0;
  3.   for (let i = 0; i < 100000; i++) {
  4.     coin() === true ? heads++ : heads;
  5.   }
  6.   return heads / 100000;
  7. }
RAW Paste Data
Top