NERSCPowering Scientific Discovery Since 1974



The SPRNG libraries of generators produce good quality random numbers,
and are also fast. They have been subjected to some of the largest
random number tests, with around 10^13 RNs per test.  SPRNG provides both FORTRAN and C (also C++) interfaces for the use of
the parallel random number generators.


SPRNG v2.0 is available on Carver (gcc, intel and pgi) and Cray systems (pgi and cce).  Use the module utility to load the software.

module load sprng


On Cray systems:

ftn sprng_test.F $SPRNG -lsprng

On Carver:

mpif90 sprng_test.F $SPRNG -lsprng


On Carver there are various documents in $SPRNG/DOCS and various examples in $SPRNG/EXAMPLES.  See the SPRNG web site at Florida State University for complete details.  For help using SPRNG at NERSC contact the consultants,


PackagePlatformCategoryVersionModuleInstall DateDate Made Default
sprng carver libraries/ math 2.0 sprng/2.0 2010-09-13 2010-09-13
sprng edison libraries/ math 2.0 sprng/2.0 2013-02-06
sprng edison applications/ astronomy 2.6.1 yt/2.6.1 2014-05-09 2014-05-09
sprng edison applications/ astronomy 3.1 yt/3.1 2015-03-11
sprng hopper libraries/ math 2.0 sprng/2.0 2010-03-10 2010-03-10
sprng hopper libraries/ math 2.0 sprng/2.0 2110-12-10 2010-12-10
sprng hopper libraries/ math 2.0 sprng/2.0 2110-12-10
sprng hopper_cle52 libraries/ math 2.0 sprng/2.0 2015-03-05