How can i do this?

How can I print random texts like this (it keep changing)

How can I print random texts like this (it keep changing)