HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

"Random" Numbers

08-01-2002, 02:21 PM#1
Guest
Ok, I don't know if this is just my luck or what, but it seems that whenever I generate a "random" number in a map, the first number generated is always the same whenever I start the map(I hope you understand what I mean..).
For example, in my map I create 2 random numbers in between 1 and 6, and add them together. It works, but the thing is that the first number generated is always 11. If anyone can help me with, it would be much appreciated...
08-01-2002, 02:50 PM#2
Guest
When you use the "test map" option in the WC3 campaign editor, it uses the same random number seed every time. (it has to do with how computers, which are non-random, generate seemingly random numbers)

The long and short of it is if you "test map" the random numbers generated wont be random. They'll be the same every time you test the map.

If you open War 3 and play single player custom game then the numbers will be truly random. Don't worry about it.