added random extension to get a uniform rand distribution between two doubles