Using the SPRNG random number generator

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 version 2.0a is installed in valkyrie:$(PUB)/lib/SPRNG. Two examples of how to build an application that uses SPRNG is found in valkyrie:$(PUB)/examples/sprng_ex., one version under MPI, the other without. More generally, you may find many examples in PUB/lib/SPRNG/EXAMPLES/.

The Makefile includes a version of the arch 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 PUB.

If you're interested in learning more, see the SPRNG 2.0 web page at http://sprng.cs.fsu.edu/Version2.0/index.html (We are using version 2.0).


Copyright © 2005; Scott B. Baden. Last modified: Wed Sep 27 21:48:33 PDT 2006