Pastie now auto-senses if line-wrap is a bad or good idea. Feedback?
## mark a section (Learn more)
This paste will be private.
word="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789" chars=Array.new for i in (0..word.size-1) chars[i]=word[i].chr end puts word[61].chr chars.each do |c1| chars.each do |c2| chars.each do |c3| chars.each do |c4| puts c1.to_s+c2.to_s+c3.to_s+c4.to_s end end end end
From the Design Piracy series on my blog: