An examination of some properties of computer generated "random" numbers. - Jim Mahoney, Dec 5 2002 ---------------------------------------------------------- The generators I'm using are (1) rand(), provided by the linux system, and (2) jims1Rand(), a "linear conguential" one based on the discussion in Numerical Recipes, namely Rand(i+1) = ( a * Rand(i) + c ) mod m where the three constants (m,a,c) are constants. ---------------------------------------------------------- The files are readme-jim.txt you're looking at it contents.html html file with links to the pictures and what-not jims1Rand.c code for alternatives to srand(), rand() jims1Rand.h header for jims1Rand.c *.out various output files from the programs *.gnu gnuplot files to create plots from .out files test1.c main() routine to exercise jims1Rand and the sytem rand(), finding mean and std-dev test1.out output from test1 run compile and run test1 test2.c main() to generate random (x,y) points Usage: ./test2 randRoutine nPoints nDim where randRoutine is an integer, 0=>rand(), 1=>jims1Rand() nPoints is the number of lines to output. nDim = number of randoms per line ./run2-0 creates test2-0.out and test2-0.png showing 2-D scatter of system rand() ./run2-1 creates test2-1.out and test2-1.png showing 2-D scatter of jim1Rand() run2-0-3 same with 3-D, sys rand() run2-1-3 same with 3-D, jim1Rand test3.c main() to generate slice of (x,y) points where zMin set terminal png color > set output "file.png" > plot "test.out" with points See the gnuplot manual in ../DiscreteCosineTransform/ -----------------------------------------------------------