Menu

Advice on RandomLib and C++11

If you are currently using RandomLib and expect to be working on
applications involving random numbers for the next few years, please see
my advice at http://randomlib.sf.net:

IMPORTANT NOTE: The original motivation for this library was to
provide a robust and portable library for random numbers of C++
applications. Now that C++11 is widely available, you should
transition to using the <random> header for most applications. On
Linux and Mac OSX, supply the -std=c++0x or -std=c++11 flag to the
compiler. On Windows, use Visual Studio 11 (2012) and later. Exact
sampling from the normal and discrete normal distributions is now
available with the exrandom package which is built on the C++11 random
number facilities.

The C++ language, compilers, and hardware evolve over time and you
greatly lessen the likelihood of incompatibilities by using the
facilities of the standard library. So it would be prudent to plan to
switch from RandomLib to the standard library (or to exrandom, it that's
relevant) by January 2017.

Posted by Charles Karney 2014-12-04

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.