Midnyte :
(TID[0-65,536] ^ SID[0-65,536]) >> 4 = TSV [0-4095]
PID[0-4,294,967,295] =
PID in Hexadecimal (L) 0xFFFF|FFFF (H) =
( PID(l) 0xFFFF ^ PID(h) 0xF0FF ) >> 4 =
ESV[0-4095]
If ESV is equal to TSV is shiny...
Basically the game sorts a random number between 0 and 4095 this gives your...