Probabilistic choice: Difference between revisions

(→‎{{header|Ring}}: Marked incomplete.)
Line 2,740:
 
=={{header|Ring}}==
{{incomplete|Ring|"actual" Seems to be a count rather than a probability.}}
<lang ring>
# Project : Probabilistic choice
Line 2,765 ⟶ 2,764:
see "item actual theoretical" + nl
for i = 1 to len(item)
see "" + item[i] + " " + cnt[i]/50001000000 + " " + prob[i] + nl
next
</lang>
Output:
<pre>
item actual theoretical
aleph 400.280400091307 0.200000
beth 73 0.968000181073 0.166667
gimel 1020.822400181884 0.142857
daleth 1270.927600090985 0.125000
he 150 0.190400090958 0.111111
waw 169 0.759400091064 0.100000
zayin 1870.542800091061 0.090909
heth 199.798800 0 0.063456
</pre>
 
2,468

edits