CIRCLE_POINTS is an executable FORTRAN90 program, using double precision arithmetic, which calculates points equally spaced on a circle and writes them to a file.
GEOMETRY is a FORTRAN90 library which contains a number of routines for sampling points on various geometric shapes.
PLOT_POINTS is an executable FORTRAN90 program that can make a plot of the points.
RANDOM_DATA is a library which contains a number of routines for sampling random points in or on various geometric shapes.
ARC is a set of 10 equally spaced points from 0 to 90 degrees.
circle_points 10 5 5 2 0 90 arc.txt
PENTAGON is a set of 6(!) equally spaced points from 0 to 360 degrees. This is the easiest way to get a pentagon, but you should really edit the file and remove the last point, since it repeats the first one. The alternative is to specify that the angles range from 0 to 288 degrees!
circle_points 6 0 0 1 0 360 pentagon.txt
You can go up one level to the FORTRAN90 source codes.