class Temp attr_reader :str, :ag, :sd, :re, :qu, :me, :em, :int, :co, :pre def initialize stats = [ "str", "ag", "sd", "re", "qu", "me", "em", "int", "co", "pre"] stats.each do |stat| stat = rand( 89 ) + 11 @stat = stat end end end