Add new methods for name formatting, triangle validation, value calculation, and random number generation