Find the specific number from Array.collect : <p>I want to find out what's the first, the second, and the third result, so that I can do <code>if firstnumber==secondnumber &amp;&amp; secondnumber==thirdnumber</code>. How could I find those numbers on the results?</p>

<pre><code>numbers = 3.times.map { Random.new.rand(0..10000) }

prizes = numbers.map do |x|
  case x
  when 1..3000
    [ '7', 10000 ]
  when 3001..6000
    [ "Cherries", 500 ]
  when 6001..10000
    [ "Diamond", 400 ]
  end
end

puts "Your results are: #{prizes.collect { |p| p[0] }.join(", ")}!
</code></pre>

<p>I tried to use p[0][0], but it gives the first letter instead.</p>
