Add randomized speed function to enemies.