Please Forward: Ruby Quiz Submission

From: doug meyer <>
Date: February 16, 2007 4:09:54 PM CST
Subject: Please Forward: Ruby Quiz Submission

First Submission to Ruby Quiz, hope it's good

@ticket = (0..8).map{|col| (col*10..(col+1)*10-1).to_a.sort_by{rand}[0,3]}
(0..2).each do |row|
  (0..8).find_all do |i|
    @ticket[i].compact.size > 1
  end.sort_by{rand}[0,4].each do |col|
    @ticket[col][row] = nil

I don't mean to say that I have already achieved these things or that I have already reached perfection! But I keep working toward that day when I will finally be all that Christ Jesus saved me for and wants me to be.
Philip. 3: 12, NLT
- Doug Meyer

Don't pick lemons.
See all the new 2007 cars at Yahoo! Autos.


Begin forwarded message: