the way the game works is that it has 2 random number generators. the "main" rng is the one the game uses for many things including the PID, encounter slot, sync, nature, NPC movement, TV shows, etc. the second random number generator is used for IV generation. the two random number generators are different types and advance differently at different times. so yeah, there's no link between PID and IV.