PyDocs

Nav

Numeric and Mathematical Modules

getrandbits

random

function
  • getrandbits(k)
getrandbits(k) -> x.  Generates an int with k random bits.
Changed in 3.9
  • 3.9: This method now accepts zero for k.
0 Examples
No examples for random/getrandbits.
See Also
No see-alsos for random/getrandbits
0 Notes
No notes for getrandbits