The Random command can be used to add random time in scripts
~Random 10
This will make the script wait a number of seconds between 0 and 10
I used it in one of my scripts to add random weapons to civillians.
;###################################################
;#-------------------------------------------------#
;#-------------Random rebel weapon script----------#
;#-------------Written by Knut Erik----------------#
;#-------------------------------------------------#
;###################################################
_Rebel = _This select 0
_RebWep = Random 4
_Rebel setBehaviour "Careless"
_Rebel setSkill Random 1
?_RebWep <= 1 : goto "Beretta"
?_RebWep <= 2 : goto "CZ75"
?_RebWep <= 3 : goto "Ingram"
?_RebWep <= 4 : goto "Glock"
hint "Error in Rebell.sqs"
EXIT
#Beretta
_Rebel addMagazine "BerettaMag"
_Rebel addMagazine "BerettaMag"
_Rebel addMagazine "BerettaMag"
_Rebel addWeapon "Beretta"
EXIT
#CZ75
_Rebel addMagazine "CZ75Mag"
_Rebel addMagazine "CZ75Mag"
_Rebel addMagazine "CZ75Mag"
_Rebel addWeapon "CZ75"
EXIT
#Ingram
_Rebel addMagazine "IngramMag"
_Rebel addMagazine "IngramMag"
_Rebel addMagazine "IngramMag"
_Rebel addWeapon "Ingram"
EXIT
#Glock
_Rebel addMagazine "GlockMag"
_Rebel addMagazine "GlockMag"
_Rebel addMagazine "GlockMag"
_Rebel addWeapon "Glock"
EXIT
Does anything of this make sense ;D