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.
secrets.choice
secrets.randbelow
secrets.rst
1 parent ba7c6bf commit 45302caCopy full SHA for 45302ca
Doc/library/secrets.rst
@@ -42,13 +42,13 @@ randomness that your operating system provides.
42
sources provided by the operating system. See
43
:class:`random.SystemRandom` for additional details.
44
45
-.. function:: choice(sequence)
+.. function:: choice(seq)
46
47
Return a randomly chosen element from a non-empty sequence.
48
49
-.. function:: randbelow(n)
+.. function:: randbelow(exclusive_upper_bound)
50
51
- Return a random int in the range [0, *n*).
+ Return a random int in the range [0, *exclusive_upper_bound*).
52
53
.. function:: randbits(k)
54
0 commit comments