From 7a170870bb3c1eb5ec84aa2a23862636c5767380 Mon Sep 17 00:00:00 2001 From: Wolfgang Bangerth Date: Tue, 17 Apr 2018 10:11:08 -0600 Subject: [PATCH] Clarify a comment for Utilities::generate_normal_random_number(). --- include/deal.II/base/utilities.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/include/deal.II/base/utilities.h b/include/deal.II/base/utilities.h index 051662d6ee..d55fab21c7 100644 --- a/include/deal.II/base/utilities.h +++ b/include/deal.II/base/utilities.h @@ -263,6 +263,7 @@ namespace Utilities /** * Generate a random number from a normalized Gaussian probability * distribution centered around @p a and with standard deviation @p sigma. + * The returned number will be different every time the function is called. * * This function is reentrant, i.e., it can safely be called from multiple * threads at the same time. In addition, each thread will get the same @@ -278,8 +279,8 @@ namespace Utilities * @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 + * really verify statistical 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. -- 2.39.5