changed module and random_float function