Why can't I do the following:
current_location = 'omaha'
omaha = []
omaha[0] = rand(10)
omaha[1] = rand(10) + 25
omaha[2] = rand(5) + 10
puts "You are currently in #{current_location}."
puts "Fish is worth #{omaha[0]}"
puts "Coal is worth #{current_location[1]}"
puts "Cattle is worth #{current_location[2]}"
The omaha[0] line works, but the current_location[1] doesn't. I suspect it is because omaha is a string and my puts is returning an ASCII code for that letter (That is in fact what is happening).
How do I get around this?