Replace explicit with random in maximum tests.