Relative Frequency by Hendrik

while""do c,_,s=io.read(1,1,"*l")print(("%f"):format(1-#s:gsub(c,"")/#s))end

Note that non-ascii characters in the above source code will be escaped (such as \x9f).

download

return to the top page