Hello,

I am performing this problem as an exercise in computer science, but the mathematical knowledge required has me stumped. I have been away from statistics for a few years now, so this is shady to me. Here's the essence of the problem:

I have a 100 metre long line segment. I am going to give it "a" possible locations on the line segment where a "cut" may occur. Think of it like a long piece of string, and I am drawing on with a marker "a" spots where I might want to cut the string. Now, I pick a length, say "b" that I want at least one piece of string to be after I cut it. I will be cutting it in exactly two places and there will always be at least two and no more than 50 spots in "a".

What is the probability that, given equal chance for each mark in "a", at least one slice of string is of length "b" after cutting the string in two locations?

My apologies if this is unclear. I tried to keep things as clear as possible. Thanks in advance!