I am using the following code to seed for my RNG. The results just look too close together to be statistically reasonable (edge cases appearing in succession far too often).
This RNG does not have to be perfect, but I would like it to be reasonable. Would sleeping the entire routine a second (or less), between iterations improve the seeding? Time is not really a big deal. If the entire program runs in 20 seconds or 2 seconds is not an issue.
seed_clock = time.time()
seed(seed_clock)
value = randint(1, 100)
Aucun commentaire:
Enregistrer un commentaire