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