From d0862f2c8eb0d194590bdd10f137ad4e8cd7b750 Mon Sep 17 00:00:00 2001 From: bangerth Date: Fri, 14 Dec 2012 02:30:13 +0000 Subject: [PATCH] Augment documentation some more. git-svn-id: https://svn.dealii.org/trunk@27820 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/include/deal.II/base/utilities.h | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/deal.II/include/deal.II/base/utilities.h b/deal.II/include/deal.II/base/utilities.h index 7093ff32f4..657472427d 100644 --- a/deal.II/include/deal.II/base/utilities.h +++ b/deal.II/include/deal.II/base/utilities.h @@ -177,6 +177,17 @@ namespace Utilities * you need to use separate random number facilities for separate * threads, rather than this global function. For example, the C++11 * standard offers such objects, as does BOOST. + * + * @note Like the system function rand(), this function produces + * the same sequence of random numbers every time a program is + * started. This is an important property for debugging codes, + * but it makes it impossible to really verify statistics + * properties of a code. For rand(), you can call srand() to + * "seed" the random number generator to get different sequences + * of random numbers every time a program is called. However, this + * function does not allow seeding the random number generator. + * If you need this, as above, use one of the C++ or BOOST + * facilities. */ double generate_normal_random_number (const double a, -- 2.39.5