Random Rotation without Flipping

1 more thing for the same subject, I noticed that my ai characters spawn with their lower half under the ground. How do I make them all spawn above?