检测可被替换为 rand crate 中的 random()thread_rng().gen() 的用法。