diff --git a/run_names.rb b/run_names.rb index e0359e3..b6808d7 100644 --- a/run_names.rb +++ b/run_names.rb @@ -29,7 +29,7 @@ pick_order = participants.shuffle pick_order.each do |participant| while participant.buys_for == nil - pick = hat[rand(hat.length)] + pick = hat[rand(hat.length)] # could use hat.sample instead, the sample method randomly picks from an array. puts "#{participant.name} picks #{pick.name}" unless pick == participant participant.buys_for = pick