11.07.2015 Views

A Random Number Generator Test Suite for the C++ ... - ETH Zürich

A Random Number Generator Test Suite for the C++ ... - ETH Zürich

A Random Number Generator Test Suite for the C++ ... - ETH Zürich

SHOW MORE
SHOW LESS
  • No tags were found...

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

AbstractThe heart of every Monte Carlo simulation is a source of high quality random numbers and<strong>the</strong> generator has to be picked carefully. Since <strong>the</strong> “Ferrenberg affair” it is known to a broadcommunity that statistical tests alone do not suffice to determine <strong>the</strong> quality of a generator,but also application-based tests are needed. With <strong>the</strong> inclusion of an extensible randomnumber library and <strong>the</strong> definition of a generic interface into <strong>the</strong> revised <strong>C++</strong> standard it willbe important to have access to an extensive <strong>C++</strong> random number test suite. Most currentlyavailable test suites are limited to a subset of tests are written in Fortran or C and cannoteasily be used with <strong>the</strong> <strong>C++</strong> random number generator library.In this paper we will present a generic random number test suite written in <strong>C++</strong>. Theframework is based on <strong>the</strong> Boost reference implementation of <strong>the</strong> <strong>for</strong>thcoming <strong>C++</strong> standardrandom number generator library. The Boost implementation so far contains most modernrandom number generators. Employing generic programming techniques <strong>the</strong> test suite isflexible, easily extensible and can be used with any random number generator library, includingthose written in C and Fortran. <strong>Test</strong> results are produced in an XML <strong>for</strong>mat, whichthrough <strong>the</strong> use of XSLT trans<strong>for</strong>mations allows extraction of summaries or detailed reports,and conversion to HTML, PDF, PostScript or any o<strong>the</strong>r <strong>for</strong>mat.At this time, <strong>the</strong> test suite contains a wide range of different test, including <strong>the</strong> standardtests described by Knuth, Vattulainen’s physical tests, parts of Marsaglia’s Diehard test suite,and a number of number of newer tests.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!