Store random in range


 * Stores a random value in the range of ..-1.

It uses engine random generator. In the mission it uses mission timer as seed. So in the begining, the first frame or second frame, all random generated numbers will be the same each time the mission starts. That is why equipment of agents will be the same every time.

To fix this issue store mission timer milliseconds when exit previous mission.

Add this trigger to the begining of each mission.

(ti_on_agent_spawn, 0, ti_once,[],[ (try_for_range, ":i", 0, "$random_seed"),     (store_random_in_range, reg10, 0, 2),  (try_end), ]),
 * 1) Procedure to fix psevdorandom of troops equipment