Scattering Moving Enemies?

Hello, I want to make enemies that move inside a sphere, and when die, explode into little tiny enemies. How could I go about this? There are 2 problems I’m having.

  1. I don’t know how I can keep the enemies bouncing inside the sphere, while going in random directions.
  2. How could I make the little enemies scatter out and go in another direction?

Thanks for reading! Any help is greatly appreciated!