Knuth's algorithm S: Difference between revisions
Content deleted Content added
Line 364: | Line 364: | ||
s_of_n = s_of_n_creator(3) |
s_of_n = s_of_n_creator(3) |
||
sample = nil |
sample = nil |
||
(0..9).each {|digit| sample = s_of_n |
(0..9).each {|digit| sample = s_of_n[digit]} |
||
sample.each {|digit| frequency[digit] += 1} |
sample.each {|digit| frequency[digit] += 1} |
||
end |
end |