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 8d41491 commit 09ecc79Copy full SHA for 09ecc79
Doc/library/random.rst
@@ -59,6 +59,12 @@ from sources provided by the operating system.
59
random number generator with a long period and comparatively simple update
60
operations.
61
62
+.. note::
63
+ The global random number generator and instances of :class:`Random` are thread-safe.
64
+ However, in the free-threaded build, concurrent calls to the global generator or
65
+ to the same instance of :class:`Random` may encounter contention and poor performance.
66
+ Consider using separate instances of :class:`Random` per thread instead.
67
+
68
69
Bookkeeping functions
70
---------------------
0 commit comments