random

Status
Not open for further replies.

007

007

Level 6
Joined
May 3, 2009
Messages
175
if i use a trigger in which the editor does something "randomly" it does not really work. it does do something randomly but only once. every time i test the game exactly the same thing happens.

i want an event to be chosen randomly. it is the same event every time.
in that event i want a unit to appear at a random place. it is the same place every time.

isnt there a way to have something really happen randomly. if you play the game a couple of times you always know what happens next and that really sucks.
 
The pesudo random number generator in WC3 is adiquit. Probaility is done correctly and generally stuff that should be 50:50 is 50:50 to within minro allowed varience. The only problem occurs (like all pesudo number generators) is that there are a finite number of sequences it can produce and thus true randomness is impossible. You can not get a godly steak of the same result infinite times in a row although the laws of probability do allow for that (just it becomes infinitly unlikly).

I am guessing the Seed used by the pesudo random generator is dictated by the game host so it could be possible for a bot to start all maps with the same seed although this defeates the purpose of random numbers.
 
Status
Not open for further replies.
Back
Top