Ruby on Rails solutions, experiments. Other languages tips & tricks.
numbers = [] while(numbers.size != 6) do x = (rand(49) + 1) numbers << x unless numbers.include?(x) end numbers.sort!
No comments:
Post a Comment