How can I give a probability of an actor spawning?

Like this:

The code to kill the actor after 2 seconds is inside the actor itself. That way, you don’t have to manage it…