Your code should work just fine. How did you initialize the @offspring 
array?

JP

-- 
Posted via http://www.ruby-forum.com/.