Here is a gzipped tarball containing a code (in C) to create stars around a massive black hole. It also contains contains the Makefile, and documentation (with TeX source). For testing purposes, the code also contains a very simple integrator using the logarithmic hamiltonian method.
You can use this code in any way you see fit, but please follow GNU GPL (v2) for redistribution.
-- atakan