Jump to content

Verify distribution uniformity/Naive: Difference between revisions

(→‎{{header|Racket}}: Marked incorrect as the arguments don't fit the task description.)
Line 1,058:
end
puts h.keys.sort.each map{|k, v| print "#{k} #{h[k]v} "}
puts
end
 
Line 1,071 ⟶ 1,070:
end</lang>
 
{{out}}
output:
<pre>0 10048
<pre>0 9986 1 9826 2 9861 3 10034 4 9876 5 10114 6 10329 7 9924 8 10123 9 9927
1 9949
#<StandardError: distribution potentially skewed for 'false': expected around 50000.0, got 94841></pre>
2 9920
 
3 9919
4 9957
5 10087
6 9835
7 10026
8 10069
9 10190
#<StandardError: distribution potentially skewed for 'false': expected around 50000.0, got 94841></pre95040>
</pre>
 
=={{header|Run BASIC}}==
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.