Hi, my question is pretty simple:
How truly WC3 random function is "random"? How many seeds game can have? Do seeds change every time i call function (based by time or something)?
I ask this because I am making a card map, and I don't want to have same deals over and over again. If game initializes random at map start (using a seed eg. from 1 to 2^16) then every 2^16 game would (in theory) have EXACTLY the same cards dealt. That's not nice, plus if someone would "crack" the random function he/she/it would have complete knowledge of all coming hands.
So, is random function seed affected only on map start (or even game start?), or every time I call that function? And how many seeds random function accepts? I believe this questions are more of game engine questions than World Editor, but heck if you know share it with me
Only reason I am posting here is because, a lot of people who visit this forum use World Editor a lot, and maybe have some knowledge about this issue.
Thanks for any help.
Sincerely,
Filip.
How truly WC3 random function is "random"? How many seeds game can have? Do seeds change every time i call function (based by time or something)?
I ask this because I am making a card map, and I don't want to have same deals over and over again. If game initializes random at map start (using a seed eg. from 1 to 2^16) then every 2^16 game would (in theory) have EXACTLY the same cards dealt. That's not nice, plus if someone would "crack" the random function he/she/it would have complete knowledge of all coming hands.
So, is random function seed affected only on map start (or even game start?), or every time I call that function? And how many seeds random function accepts? I believe this questions are more of game engine questions than World Editor, but heck if you know share it with me
Only reason I am posting here is because, a lot of people who visit this forum use World Editor a lot, and maybe have some knowledge about this issue.
Thanks for any help.
Sincerely,
Filip.