Random Appearance

I am making a First-person shooter and I was wondering if anyone knows the code for making people randomly pop put of their hiding places. So like the person comes out of the same place, but at a random time after some others. Anyone know?