From: Kenichi Kamiya Date: 2012-02-04T12:35:12+09:00 Subject: Re: 4 random numbers take highest 3 and add them together. sorry, my ex2 is not safety(if [1, 1, 3, 6]) I reccomend Harry's approaching. fixed-ex2) stats = 4.times.map{rand(6) + 1} min = stats.min p (stats.inject(:+) - stats.min) -- Kenichi Kamiya