Two bullet roulette: Difference between revisions
m
→{{header|EasyLang}}
Space Ghost (talk | contribs) |
|||
Line 469:
proc load . .
while cyl[1] = 1
.
cyl[1] = 1
.
proc spin . .
lim = random 6
for i = 1 to lim - 1
.
.
shot = cyl[1]
.
shot = 0▼
for m in m[]
if m = 1
elif m = 2
elif m = 3
.
.
.
.
method$[] = [ "load" "spin" "fire" ]
Line 504:
n = 100000
for i = 1 to n
▲ sum += shot
.
for i = 1 to len m[]
Line 512 ⟶ 511:
print "-> " & 100 * sum / n & "% death"
.
</syntaxhighlight>
|