Verify distribution uniformity/Naive: Difference between revisions

Content added Content deleted
(→‎{{header|Racket}}: Marked incorrect as the arguments don't fit the task description.)
Line 1,058: Line 1,058:
end
end
h.keys.sort.each {|k| print "#{k} #{h[k]} "}
puts h.sort.map{|k, v| "#{k} #{v}"}
puts
end
end


Line 1,071: Line 1,070:
end</lang>
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 95040>
</pre>


=={{header|Run BASIC}}==
=={{header|Run BASIC}}==