darashi on Nostr: /run rb list = Hash.new(0) 10000.times do list["アツコヒ".chars.shuffle.join] += ...
/run rb
list = Hash.new(0)
10000.times do
list["アツコヒ".chars.shuffle.join] += 1
end
list.sort_by {|k, v| -v}.each do |v|
puts v.join(" ")
end
Published at
2024-10-30 00:30:37Event JSON
{
"id": "0af5ad09fae8bd15ff51b0d0e338cdbc3ed883a5788e53c6a6be2faa92da193e",
"pubkey": "07804b786c6a3b400b7b20d9bfc945035f3ad213da797b0c50954767c375c543",
"created_at": 1730248237,
"kind": 1,
"tags": [],
"content": "/run rb\nlist = Hash.new(0)\n10000.times do\n list[\"アツコヒ\".chars.shuffle.join] += 1\nend\n\nlist.sort_by {|k, v| -v}.each do |v|\n puts v.join(\" \")\nend",
"sig": "20e73ff86a073bf85e01dc040c47e0e2c9be4956ccb03a18addea22240bd90ab29f88e344c4cde76d318c32a8b87e2728893e6b7ba7e039fc5cf41f8a1e95fae"
}