Added random float function.