Ranking by leonid

h={}
a=0
$<.sort_by{|i|rand-i[/\d+$/].hex}.map{|i|h[i[/.+ /]]||=[puts"#{a+=1;h[$'.hex]||=a} "+i]}

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

download

return to the top page