If I have random lag times from a=0.1 to b=0.3 and a time to live (TTL) of x=0.25, what would be the packet loss in per cent?
Ok so basically I have packets that arrive in Random [a,b] time, if that random value is greater than x the packet gets lost and doesn't arrive.
What is the probability of a packet to arrive?
You are taking a uniform random number in the range $[0.1,0.3]$ and asking the chance that it is less than $0.25$. You win in $0.25-0.1=0.15$ of the range of $0.3-0.1=0.2$, so the chance is $\frac {0.15}{0.2}=0.75$