add random response function