Added method to return random double in a range