Hey hedi.

This looks like a frequency problem where the smaller the distance between lines, the higher the probability.

Once the needle length is the same as the distance between lines the probability will be 1 from there on in.

But in terms of when this is less it should be proportional to the ratio of the needle size to that of the distance between the lines if you assume that every possible placement has the same probability (uniform probability).