View/Edit #9682:stats

Switch to edit mode.

Name(s): stats
1:  b = 0
2:  j = 0
3:  while (!0)
4:    suspend(0)
5:    if (b + j == 10000)
6:      break
7:    endif
8:    if (random(10) <= 3)
9:      b = b + 1
10:     continue
11:   endif
12:   if (random(10) <= 3)
13:     j = j + 1
14:     continue
15:   endif
16: endwhile
17: player:tell("Probability Bob will win: " + tostr(tofloat(b) / 10000.0 * 100.0) + "%")

Verb arguments: none none none
Verb perms: Readable NOT-Debug
Verb owned by: Dizzy_Devil (#9682)

You are not logged in.

[home | help | who | search | setup | code]