Replaces the library random function with a custom one.
A random function that returns a number between 0 and 1.
Replaces the library random function with a custom one.