Add a method to generate a random double