When you've already got an array with the beasts, you can use the player 
input as an index:

# beast_names is the array with the 10 possible names
beast_name = beast_names[gets.chomp.to_i - 1]

The "- 1" is necessary if your start numbering the names with 1 instead 
of 0.

Of course, you should add some kind of error handling for invalid input.

-- 
Posted via http://www.ruby-forum.com/.