HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

True randomness?

02-13-2004, 07:59 PM#1
beylibopp
Greetings!

I was poking around with a map and wanted a variable to, on map initialization, be set to a random value between 1 and 5. Sounds simple, eh? However, I found out that the "random" numbers are always the same, which is not what I want.

Every time I started the map, the variable would be 1, and then it would be 3, 4, 4, 4, 5, 5, 5, 5, 4, etc. Always the same numbers.

I'd like it to sometimes be set to 5, and maybe another time 3, at map initialization.

Right now I have
set variable = (Random integer number between 1 and 5)
on map initialization, and it doesn't work satisfactory.

Does anyone know how to make it really random?

Edit: Auw, damn, I might have posted this in the wrong place. Sorry.

Edit2: Eh, this issue got solved anyway (I forgot to uncheck the Use Fixed Random Seed in Preferences->Test Map..)