Some C programs and subroutines

mersenne_inline.c and mersenne.h
These are an implementation of the Twisted Mersenne random number generator. You need these for almost all of the other programs

random_genrate.c
Just generates and prints random numbers. Uses the Mersenne generator from above.

gaussian_ran.c
Implements the Box-Muller method for generating Gaussian random numbers.

grnd_generate.c
Prints Gaussian random numbers.

mc_integrate.c
Does a simple Monte Carlo integration.

xisingdemo.c
X-windows demo program for 2d Ising model. Needs mersenne.h and mersenne_inline.c This is modified from the "xtoys" programs of Michael Creutz, Brookhaven, http://thy.phy.bnl.gov/www/xtoys/xtoys.html