How different do random seeds need to be?

前端 未结 6 1372
情深已故
情深已故 2020-12-06 16:28

Consider code like this (Python):

import random

for i in [1, 2, 3, 4]:
    random.seed(i)
    randNumbers = [random.rand() for i in range(100)] # initialize         


        
6条回答
  •  既然无缘
    2020-12-06 17:06

    You seem to want pseudo-random numbers that aren't pseudo-random, with a higher probability of consecutive numbers being 'significantly' different than pseudo-randomness requires. I doubt that any common prng will do this, whatever your seeding strategy.

提交回复
热议问题