internal static uint getTSV(uint TID, uint SID) { return ((TID ^ SID) >> 4); } internal static uint getRandomPID(int species, int cg)