HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Random Integers - Not Random

08-23-2006, 11:51 AM#1
Freakazoid
Well, in my AoS, the map cant choose a random integer it allways give me the same one, therefore the All Random command is not random,....
08-23-2006, 11:59 AM#2
Captain Griffen
You using text map? Don't.
08-23-2006, 12:01 PM#3
Jazradel
Or if you do, untick the 'Fixed Random Seed' box in preferences.
08-23-2006, 12:03 PM#4
Tidus
First, I want to say, how often did you try it ? Cause it is really random, and maybe you got still bad luck :D

Random real Number between 0 and "x" (x=number of heros you got) before that for each hero one variable number, and after it, if Random real Number = 7 create 1 Hero (Number 7) at "somewhere" controlling by "someone" - That is not working ? I think there is also an easier way :)
08-23-2006, 12:11 PM#5
martix
Quote:
By definition no deterministic mathematical algorithm can produce a random result.
Or something of the sort... :) So no, there is no such thing as randomness
08-23-2006, 12:43 PM#6
Freakazoid
Quote:
Originally Posted by Tidus
First, I want to say, how often did you try it ? Cause it is really random, and maybe you got still bad luck :D

Random real Number between 0 and "x" (x=number of heros you got) before that for each hero one variable number, and after it, if Random real Number = 7 create 1 Hero (Number 7) at "somewhere" controlling by "someone" - That is not working ? I think there is also an easier way :)

Lots of times.

I just use use random integer betwen 1 and 24.

Unit create 1 Hero[Random Integer betwen 1 and 24] at location, and always get 1 same hero.
08-23-2006, 02:10 PM#7
DioD
its but, just somewhere in your code you set random seed to value check it
08-23-2006, 02:54 PM#8
blu_da_noob
As griffen said, stop using 'test map'.
08-23-2006, 03:43 PM#9
DioD
i never used test map, much more faster to open editor and wc3 same time and just use alt-tab for test
08-23-2006, 04:04 PM#10
Vexorian
If you hack the editor to run wc3 in window mode, it is much faster to use test map than to keep wc3 running.
08-23-2006, 04:57 PM#11
Tidus
Quote:
If you hack the editor to run wc3 in window mode ...

Hack the Editor, hein what ?

STRG + F9 ?
08-23-2006, 05:06 PM#12
Freakazoid
Quote:
Originally Posted by Tidus
Hack the Editor, hein what ?

STRG + F9 ?

Just use his editor :)
08-23-2006, 05:13 PM#13
Hyarion
JUST UNCHECK "Use Fixed Random Seed" IN THE FILE MENU!
08-23-2006, 05:29 PM#14
Freakazoid
Quote:
Originally Posted by Hyarion
JUST UNCHECK "Use Fixed Random Seed" IN THE FILE MENU!

Ok, ok, no need to shout -.-
08-23-2006, 05:31 PM#15
karukef
Quote:
Originally Posted by Vexorian
If you hack the editor to run wc3 in window mode, it is much faster to use test map than to keep wc3 running.

Alt+tab in and out is faster for me. And yes I've tried the hack, it doesn't make things start up any faster here. So speak for yourself.