SPRNG is a high quality library for generating random numbers. It operates from a single global seed and uses a sensible strategy for picking a seed based on the system clock.
SPRNG is installed in valkyrie:~/../public/lib/SPRNG. An example of how to build an application that uses SPRNG is found in valkyrie:~/../public/examples/spring_ex..
An Odd-Even sort program using SPRNG has been installed in ~/../public/examples/oesort. The Makefile includes a version of the arch.valkyrie file which defines appropriate command line compiler and loader flags with settings specific to SPRNG. Be sure to use this instead of the version posted in ~/../public.
If you're interested in learning more, see the SPRNG web page at http://sprng.cs.fsu.edu/Version1.0/index.html (We are using version 1.0).
Copyright © 2003 Scott B. Baden. Last modified: 05/15/03 07:01 PM