rem: unsigned short netcat_flag_rand()
add: unsigned short netcat_flag_rand(void)
context: unsigned short netcat_flag_rand(){  int rand, randmax = netcat_flag_count() - 1;  unsigned short ret = 0;  assert(flagset);  /* if there are no ports at all */  if (randmax < 0)    return 0;  /* fetch a random number from the high-order bits */  rand = 1 + (int) ((float)randmax * RAND() / (RAND_MAX + 1.0));  /* loop until we find the specified port */  while (rand) {    ret = netcat_flag_next(ret);    rand--;  }  /* don't return this port again */  netcat_flag_set(ret, FALSE);  return ret;}