Probabilistic choice: Difference between revisions
→{{header|Ring}}
Line 2,740:
=={{header|Ring}}==
<lang ring>
Line 2,756 ⟶ 2,751:
prob = [1/5.0, 1/6.0, 1/7.0, 1/8.0, 1/9.0, 1/10.0, 1/11.0, 1759/27720]
for trial = 1 to
r = random(10)/10
p = 0
|