1 2 3 4 5 6
a = 0 b = 0 10.times do if (rand(2) > 0) then a+=1 else b+=1 end end puts "a = #{a}, b = #{b}"
1
a = 6, b = 4