We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2990aef commit af891a9Copy full SHA for af891a9
Doc/library/random.rst
@@ -319,6 +319,13 @@ be found in any statistics text.
319
deviation. This is slightly faster than the :func:`normalvariate` function
320
defined below.
321
322
+ Multithreading note: When two threads call this function
323
+ simultaneously, it is possible that they will receive the
324
+ same return value. This can be avoided in three ways.
325
+ 1) Have each thread use a different instance of the random
326
+ number generator. 2) Put locks around all calls. 3) Use the
327
+ slower, but thread-safe :func:`normalvariate` function instead.
328
+
329
330
.. function:: lognormvariate(mu, sigma)
331
0 commit comments