I don't know what happens but GetRandomInt always give me the same numbers: for ex:
Displays:
7
6
1
9
3
10
It's me or it is a bug with 1.24 or this is how it works?
JASS:
function Trig_s_Actions takes nothing returns nothing
call DisplayTimedTextToForce( bj_FORCE_PLAYER[0], 30, I2S(GetRandomInt(1, 10)) )
call DisplayTimedTextToForce( bj_FORCE_PLAYER[0], 30, I2S(GetRandomInt(1, 10)) )
call DisplayTimedTextToForce( bj_FORCE_PLAYER[0], 30, I2S(GetRandomInt(1, 10)) )
call DisplayTimedTextToForce( bj_FORCE_PLAYER[0], 30, I2S(GetRandomInt(1, 10)) )
call DisplayTimedTextToForce( bj_FORCE_PLAYER[0], 30, I2S(GetRandomInt(1, 10)) )
call DisplayTimedTextToForce( bj_FORCE_PLAYER[0], 30, I2S(GetRandomInt(1, 10)) )
endfunction
//===========================================================================
function InitTrig_s takes nothing returns nothing
set gg_trg_s = CreateTrigger( )
call TriggerAddAction( gg_trg_s, function Trig_s_Actions )
endfunction
Displays:
7
6
1
9
3
10
It's me or it is a bug with 1.24 or this is how it works?