Some more fixes
Use numpy.random.uniform()