pick_id_values
pick_id_values(tp->unused, tp->pipe_num, 65536);
void pick_id_values(uint16_t* array, int num, int max);