mood
❔ Seeing the same Random() seed on separate program startups and different times
perhaps I forgot to mention that it's 5 computers all running the same program. I mean still, it seems extremely unlikely but I have dozens of cases across months
@phaseshift. haha I wish, all these duplicate tickcounts are different values and it's only random() not random(int)
19 replies
❔ Seeing the same Random() seed on separate program startups and different times
in regards to your first question, I've only ever confirmed that the tick count resets on a computer restart and that it increments on successive program startups. also confirmed through [System.Environment]::TickCount in powershell.
I may end up going this route, but perhaps it would be nice to determine a root cause or find some closure
19 replies
❔ Seeing the same Random() seed on separate program startups and different times
thanks for the response. there's only one Random object that's ever created in the program, and the issue is that I'm getting the same values months later when the program is started up again. would static solve this issue?
19 replies