m.SetHits ((m.HitsMax + (Utility.RandomMinMax (25, 50))));
m.SetStam ((m.StamMax + (Utility.RandomMinMax (25, 50))));
m.SetMana ((m.ManaMax + (Utility.RandomMinMax (25, 50))));
The above code will take m, which must be a mobile, and add 25-50 to the max values of each core stat.