this one is hard

I'm working on the planets program.  I got itso that the orbits can be 3d.  I'd really like to be able to give that initial velocity push perpendicular to the vector between the earth and the new planet being created, but I don't know how to make one of the many perpendicular vectors when working in three dimensions.