随机数发生器 只要种子一样,则产生的随机数也一样。 numpy.random.seed()和numpy.random.RandomState两种方法都可以设置随机数种子 numpy.random.seed()不是线程安全的