Square line picking is the selection of pairs of points (corresponding to endpoints of a line segment) randomly placed inside a square. n random line segments can be picked in a unit square in the Wolfram Language using the function RandomPoint[Rectangle[], {n, 2}].