On Apr 14, 1:08 pm, Ben Galyean <bengaly... / hotmail.com> wrote: > Hello all, > > #*********************************** > class Sword > attr_accessor(:realDam) > > def initialize(aRealDam) > @realDam = aRealDam > end > end > > Longsword = Sword.new(rand(8)+1) Here you generate a value that gets stored try: class Sword def initialize(maxDamage, modifier) @maxDamage, @modifier = maxDamage, modifier end def hitDamage() return rand(@maxDamage)+1 + @modifier end end not tested, but should be close cheers Chris