In three dimensional space
3 3
probability that star is farther than 100 pc 333 - 100
--------------------------------------------- = ------- ~ 45
3 3
probability that star is closer than 100 pc 100 - 59