This `rand()` does not work without an include; perhaps use `np.random.uniform()`  here and below?