Greets,
Yes, entirely possible:
_delay = random 10
will generate a random number up to 10, and store it in the variable _delay.
so you could use the command
~ _delay
in conjunction with the above
Targetting a random unit: Yes, that is also possible. You could store units in an array, generate a random number based on the number of elements in the array, and select the unit from the array based on a random number...
Sorry if that doesn't make much sense
OK: So, if you wanted to randomly target any EAST unit on the map, you would create a trigger over the whole map, set it to east present, and in the activation field, put
eastUnitsArray = thislist
in the script:
_elements = count eastUnitsArray
_random = random _elements
_target = eastUnitsArray select _random
That should give you a random target, from any east unit from the map.
Good luck... ;D
-Supr. Cmdr. PsyWarrior
-Psychic Productions