I must create a little game; the one who play it must choose 2 numbers,
the beginning and the end of a range, and the program generate a secret
random number within that range, so the player must guess it!
But the problem is...how do I generate a random number?
I though at something like this:

number_to_guess = rand(n1..n2)

but it give me the error message "in `rand': can't convert Range into
Integer (TypeError)"

What can I do? Thanks!
-- 
Posted via http://www.ruby-forum.com/.