mirror of
https://github.com/pybricks/pybricks-api.git
synced 2026-07-28 04:07:46 +00:00
urandom: Fix formula in getrandbits.
This commit is contained in:
@@ -88,7 +88,7 @@ def getrandbits(k: int) -> int:
|
||||
"""
|
||||
getrandbits(k) -> int
|
||||
|
||||
Gets a random integer :math:`N` satisfying :math:`0 \\leq N < 2^{\\text{bits}}`.
|
||||
Gets a random integer :math:`N` satisfying :math:`0 \\leq N < 2^{\\text{k}}`.
|
||||
|
||||
Arguments:
|
||||
k (int): How many bits to use for the result.
|
||||
|
||||
Reference in New Issue
Block a user