Provide generate_random_points as a utility.
Eliminate use of std::distance in favor of arithmetic.