Add a method to generate random keys