add random interface and test case