PyDocs
Standard Library
(3.15.2)
Quick Reference
Log In
Nav
Top
Examples
0
See Also
0
Notes
0
Numeric and Mathematical Modules
cmath
decimal
fractions
math
math.integer
numbers
random
statistics
All modules
PyDocs
Standard Library
Quick Ref
Log In
Staging: this is not the live site, pydocs.org.
PyDocs
Standard Library
Quick Ref
Log In
Nav
Top
Examples
0
See Also
0
Notes
0
Numeric and Mathematical Modules
cmath
decimal
fractions
math
integer
numbers
random
statistics
All modules
getrandbits
random
function
getrandbits(k)
getrandbits(k) -> x. Generates an int with k random bits.
© Python Software Foundation.
PSF License Version 2
·
Official docs ↗
Changed in 3.9
3.9:
This method now accepts zero for k.
0 Examples
No examples for random/getrandbits.
Log in
to add an example
See Also
No see-alsos for
random/getrandbits
Log in
to add a see-also
0 Notes
No notes for
getrandbits
Log in
to add a note