RSITES is a C++ program which generates a random set of N points in M dimensions, by Ken Clarkson.
RSITES is part of Ken Clarkson's HULL package, and is used to generate test datasets. The coordinates of each point are integers between 0 and 999999.
RSITES is available in a C++ version.
DISCRETE_PDF_SAMPLE_2D, a C++ program which demonstrates how to construct a Probability Density Function (PDF) from a table of sample data, and then to use that PDF to create new samples.
RANDOM_DATA, a C++ program which produces random data from a number of regions.
RBOX, a C program which produces random data from a number of regions.
UNIFORM, a C++ library which samples the uniform random distribution.
Ken Clarkson, AT&T Research
You can go up one level to the C++ source codes.