Add a new method to generate random characters