Wanna try it with just 1-6?
you choose let's say [3,4]
the possible PC choices are:
[1,2] , [1,3], [1,4], [1,5], [1,6]
_____ [2,3] [2 4] [2 5] [2 6]
__________[3 4] [3 5] [3 6]
_______________[4 5] [4 6]
____________________ [5 6]
Right? So it's 15...
Expanding the above logic not until 6 but until N, it is \frac{N^2 - N}{2} (see it as a half-matrix?) with N the max number... for example the above is 6 : \frac{6^2 -6}{2} = \frac{36-6}{2} = \frac{30}{2} =15
so, the total number of ranges the computer can choose (randomly I suppose you meant with a uniform probability for all) is R=\frac{N^2 -N}{2}
For N=100 \rightarrow R = \frac{100^2 -100}{2} = 4950
Now then, the answer depends on your choice... so it depends on your minimum number k and the length L... if you choose [30,40] your minimum number is 30 and the length is 10.
Why? because then you can go to that matrix and choose the rows and columns to count of the computer that will lead to "victory".
let's say that you choose [45,55] (as your example). Any element then in the matrix that would have [46, ...] will be tossed out because it would make you lose... the length is also 10, so anything in the computer that has length less than that can be tossed because it would make you lose. Or another way is that you need to know your lowest k and your highest number m.
Well back to my initial example of 1-6 with your choice [3,4], the winning ones are:
[X,X] , [X,X], [1,4], [1,5], [1,6]
_____[X,X] [2 4] [2 5] [2 6]
__________[3 4] [3 5] [3 6]
_______________[X X] [X X]
____________________[X X]
those that pass are 9 combinations... the probability is so 9/15 ~60%
If your choice was [2,5]:
[X,X] , [X,X], [X,X], [1,5], [1,6]
_____[X,X] [X X] [2 5] [2 6]
__________[X X] [X X] [X X]
_______________[X X] [X X]
____________________[X X]
4/15 ~ 27%
see how the upper limit k+L=m cut the collumn (first column starts with [...,m] )
also see how the k cut the row (lowest elements start with [k,...])
It looks pretty much like k \times (N-m+1) (box's area) can give the correct answer for the "winning" patterns. Eg to the above examples:
1 [k=3, m=4]: 3 \times (6-3)= 3 \times 3 = 9
2 [k=2, m=5] :2 \times (6-5+1)= 2 \times 2 = 4
I think my logic is RIGHT, and so I deduce that the probability to win in general is:
P = \frac{ \text{success}}{\text{total}} = \frac{ k \times (N-m+1)}{ N ( N-1)/2 }
So I give the answer for [45,55] to be:
P = \frac{45 \times (100-55+1)}{4950 } \approx 42 \%