add random for tests