Text on screen that flashes at random times?

Hey guys. I’m looking for a way to make it so that at random times, rarely, text will start flashing on the screen for a few seconds, then it will go away. Sort of like hallucinations in Five Nights at Freddy’s. How would I do this?

you can make this with parameters in a material

Could you be a little bit more descriptive please?