I was too tired to type a proper reply What I meant was that floor(random(1,4)) will only give you 1, 2, or 3 so the gblVarOpcFracc = 4 condition will never be true. Another possible issue is that you are setting the timescale to 0 and then using wait 0.5 seconds. That wait will never happen when the timescale is 0.