HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Does Random REALLY Randomize?

09-25-2002, 04:37 AM#1
Guest
I've been making maps with "randomly" generated creeps based on the passage of game time. It works, but when I test my map from the editor, the same creeps are generated in the same places each time. In Visual Basic, you have to use a Randomize function along with the Rnd() feature, but I didn't see that in the WE.

However, after spending two hours trying to use a real variable to randomize the random creator, I gave up, closed the editor, then tested my map a few times from WC3. Viola! I've got random creeps appearing from random directions each time I restart, so it appears to be working after all.

Has anyone else experienced this? Any other thoughts or methods to assure randomness?

Vielen Dank,
Uncle Warcrafter
:ggani:
09-25-2002, 04:47 AM#2
Guest
I've had similar experiences with my randomization stuff - I think it might be that when you elect to test your map through WE, it always gives the same seed to the randomizer. I bet if you closed and reopened WE, it would get a new seed for the next testing...
09-25-2002, 04:51 AM#3
Guest
It's NOT random if you use the test map fuction from world editor.
09-25-2002, 05:02 AM#4
dataangel
Diehard's right, using the test map feature causes the same seed to be used everytime. Open war3 and load it as a custom game instead.
09-25-2002, 05:02 AM#5
Guest
Or if your map uses Cinematic mode (not letterbox) before your randomizing.
09-25-2002, 05:03 AM#6
batskcaB
Shut up. =)