File: while1.test

package info (click to toggle)
dicelab 0.7-10
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,952 kB
  • sloc: ansic: 4,808; sh: 1,162; yacc: 239; perl: 108; lex: 58; makefile: 44
file content (46 lines) | stat: -rw-r--r-- 791 bytes parent folder | download | duplicates (8)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
# while (d6 with rerolls on 6s)
[Expression]
sum while x=d6 do ((count == 6 x)#d6);

[Result]
  1     0.166667
  2     0.166667
  3     0.166667
  4     0.166667
  5     0.166667
  7     0.027778
  8     0.027778
  9     0.027778
 10     0.027778
 11     0.027778
 13     0.004630
 14     0.004630
 15     0.004630
 16     0.004630
 17     0.004630
 19     0.000772
 20     0.000772
 21     0.000772
 22     0.000772
 23     0.000772
 25     0.000129
 26     0.000129
 27     0.000129
 28     0.000129
 29     0.000129
 31     0.000021
 32     0.000021
 33     0.000021
 34     0.000021
 35     0.000021
 37     0.000004
 38     0.000004
 39     0.000004
 40     0.000004
 41     0.000004
 43     0.000001
 44     0.000001
 45     0.000001
 46     0.000001
 47     0.000001
 48     0.000001