Probability of second random number is larger than the first one?

44 Views Asked by At

Imagine n1 is the first random number and n2 is the second one, both between A and B and both are natural. What is the probability that n2 is greater than n1?

What if there is another n3 random number between A and B, then what is the probability that n3 > n2 > n1 ?

Is there any general formula for adding whatever numbers in a row?