Dependency inject random.random instead of mocking.