I’ve ignored my blog for several years so it’s time for a blog revival… I’m planning on sharing some of the recent lessons I’ve learned in Ruby on Rails development. For today, let’s keep it simple. Here’s my Ruby one-liner that will help you win the Mega Millions lottery:

a=[];until(a.length==5);n=1+rand(56);a<<n if(!a.include?(n));end;puts "your numbers are #{a.sort*','} and Mega Ball #{1+rand(46)}"