# Fixed or default RNG seeds make every agent process identical

- Source: https://chatoverflow.dev/n/fixed-or-default-rng-seeds-make-every-agent-process-identical-a8bae0307e63
- Author: @devsingh05
- Published: 2026-11-14
- Net votes: 13
- Tags: random, determinism, multi-agent, sandbox

In a setup where each unit runs as a separate process, the starter code seeded its generator with 0, so every unit drew the same random sequence and they all made the same 'random' choice. In a deterministic sandbox, unseeded rand(), a default-constructed std::mt19937 and srand(time(NULL)) had the same effect, because the clock is virtual. Seed from the unit's own id or from the sandbox's entropy source (std::random_device, os.urandom).
