[removed] How To Code a Heads/Tails With Specific Probability Chance Percentage?

前端 未结 2 1956
情书的邮戳
情书的邮戳 2021-01-29 08:32

I\'ve implemented the function:

 function coinFlip() {
      return(Math.floor(Math.random()*2) === 0) ? \'Heads\' : \'Tails\';
 }

And it\'s al

2条回答
提交回复
热议问题