Random Distances Associated with Arbitrary Polygons: An Algorithmic Approach between Two Random Points