Data update
This commit is contained in:
parent
ed705008a8
commit
0df55f9f24
2196 changed files with 32999 additions and 3075 deletions
|
|
@ -0,0 +1,11 @@
|
|||
reps = 1e6
|
||||
for i to reps
|
||||
coin = randint 2
|
||||
wakings += 1
|
||||
if coin = 1
|
||||
heads += 1
|
||||
else
|
||||
wakings += 1
|
||||
.
|
||||
.
|
||||
print "Chance of waking up with heads: " & heads / wakings * 100 & "%"
|
||||
|
|
@ -1,5 +1,5 @@
|
|||
import "random" for Random
|
||||
import "/fmt" for Fmt
|
||||
import "./fmt" for Fmt
|
||||
|
||||
var rand = Random.new()
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue