According to what I researched there, if two IVs are equal highest, the characteristic chosen between the two is random.
For all your Pokemon needs (and more!) including: the Defensive EVs
applet, the Probabilities of Breeding IVs in Pokemon
applet, and the Ratings of Pokemon Base Stats
applet (now Version 2.0!)
. And also the IV to PID