mood
mood
CC#
Created by mood on 7/12/2023 in #help
❔ 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
CC#
Created by mood on 7/12/2023 in #help
❔ Seeing the same Random() seed on separate program startups and different times
the program itself isn't started on a script or anything, it's all manual so in my mind the tick counts should virtually never sync up like that
19 replies
CC#
Created by mood on 7/12/2023 in #help
❔ 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
CC#
Created by mood on 7/12/2023 in #help
❔ Seeing the same Random() seed on separate program startups and different times
yes correct
19 replies
CC#
Created by mood on 7/12/2023 in #help
❔ Seeing the same Random() seed on separate program startups and different times
my thoughts exactly 🙁. I can't even physically open the program fast enough to get the same seed
19 replies
CC#
Created by mood on 7/12/2023 in #help
❔ Seeing the same Random() seed on separate program startups and different times
the computer and program are both restarted indiscriminately
19 replies
CC#
Created by mood on 7/12/2023 in #help
❔ 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
CC#
Created by mood on 7/12/2023 in #help
❔ Seeing the same Random() seed on separate program startups and different times
Don't think I can use Random.Shared in framework 4.5
19 replies