create seperate head file contains print && check && randuce function