Fix tests for Random so they don't depend on a certain random generator system