生成一个随机的 DNS 事务 ID / Generates a random DNS transaction id.
static int randomId([math.Random? random]) => (random ?? math.Random()).nextInt(0xFFFF);