Make all random tests deterministic

Fixes #47.

This mocks the `random/random#get` RNG when in the random tests. It will return predefined values every time it is used, which makes the tests totally deterministic.