Last active
April 13, 2023 14:49
-
-
Save xcombelle/dbd57587f66cf66f89396d74af9810b1 to your computer and use it in GitHub Desktop.
random
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var win=0;for(var i=0;i<10*1000*1000;i++){if(Math.random()*100<=0.01){win++;};};console.log(win/(10*1000*1000)); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment