So far, in my experiments, the random IV stayed the same as well. So yeah, you would be able to get a 6x31 baby, flawless.
EDIT : Also, I have a question. If I breed a Male pokémon with a Ditto, is the Ditto still considered the Male in the passing of IVs? Or since the other one is male, it...