トレーディングカードを全種類コレクションするシュミレーションを書いてみました!

#125種類のトレーディングカードを全種類コレクションするまでに必要な枚数は何枚か？

```ruby
class CardCollection
  def lets_play
    result = []
    loop do 
      result << rand(0..124)
      if result.include?(0) && result.include?(1) && result.include?(2) && result.include?(3) && result.include?(4) && result.include?(5) && result.include?(6) && result.include?(7) && result.include?(8) && result.include?(9) && result.include?(10) && result.include?(11) && result.include?(12) && result.include?(13) && result.include?(14) && result.include?(15) && result.include?(16) && result.include?(17) && result.include?(18) && result.include?(19) && result.include?(20) && result.include?(21) && result.include?(22) && result.include?(23) && result.include?(24) && result.include?(25) && result.include?(26) && result.include?(27) && result.include?(28) && result.include?(29) && result.include?(30) && result.include?(31) && result.include?(32) && result.include?(33) && result.include?(34) && result.include?(35) && result.include?(36) && result.include?(37) && result.include?(38) && result.include?(39) && result.include?(40) && result.include?(41) && result.include?(42) && result.include?(43) && result.include?(44) && result.include?(45) && result.include?(46) && result.include?(47) && result.include?(48) && result.include?(49) && result.include?(50) && result.include?(51) && result.include?(52) && result.include?(53) && result.include?(54) && result.include?(55) && result.include?(56) && result.include?(57) && result.include?(58) && result.include?(59) && result.include?(60) && result.include?(61) && result.include?(62) && result.include?(63) && result.include?(64) && result.include?(65) && result.include?(66) && result.include?(67) && result.include?(68) && result.include?(69) && result.include?(70) && result.include?(71) && result.include?(72) && result.include?(73) && result.include?(74) && result.include?(75) && result.include?(76) && result.include?(77) && result.include?(78) && result.include?(79) && result.include?(80) && result.include?(81) && result.include?(82) && result.include?(83) && result.include?(84) && result.include?(85) && result.include?(86) && result.include?(87) && result.include?(88) && result.include?(89) && result.include?(90) && result.include?(91) && result.include?(92) && result.include?(93) && result.include?(94) && result.include?(95) && result.include?(96) && result.include?(97) && result.include?(98) && result.include?(99) && result.include?(100) && result.include?(101) && result.include?(102) && result.include?(103) && result.include?(104) && result.include?(105) && result.include?(106) && result.include?(107) && result.include?(108) && result.include?(109) && result.include?(110) && result.include?(111) && result.include?(112) && result.include?(113) && result.include?(114) && result.include?(115) && result.include?(116) && result.include?(117) && result.include?(118) && result.include?(119) && result.include?(120) && result.include?(121) && result.include?(122) && result.include?(123) && result.include?(124)
        puts "#{result.length}枚"
        break
      else
      end
    end
  end

  def loops 
    puts "_______________________"
    puts "125枚のとレディングカードをすべて集めるシミュレートを１０回繰り替えしてみました！！"
    puts "_______________________"
    10.times do |q|
      puts "シュミレーション:#{q + 1}"
      lets_play 
      puts "でコンプリート"
      puts "_______________________"
    end
  end
end

CardCollection.new.loops
```
本当にランダムで発売されているトレーディングなら、500~1000枚のカードを買い揃えていくと全種類のカードがコンプリートできるようです！

あとコンプリートする時点では１０枚以上同じカードが集まってしまいます。