Python Random getrandbits() Method
Definition and Usage
The getrandbits()
method returns an integer
in the specified size (in bits).
Syntax
random.getrandbits(n)
Parameter Values
Parameter | Description |
---|---|
n | Required. A number specifying the size, in bits, of the returned integer. |
Copyright 1999-2023 by Refsnes Data. All Rights Reserved.