Sophisticated random number sampling for free line number intervals: is practically slower than brute force.
Reduced random sampling to simpler and faster version.