Comment on Me after I got fired

<- View Parent
BaumGeist@lemmy.ml ⁨10⁩ ⁨months⁩ ago

The original version constantly behaves differently at runtime

It actually doesn’t, since rand() is deterministic.

When no seed value is specified, rand() is automatically seeded with 1 at the initial call within any program It then uses the previous output as seed for the next, so it will always have the same output sequence

source
Sort:hotnewtop