bundles / numpy 2.4.3 / numpy / random / bit_generator / BitGenerator
class
numpy.random.bit_generator:BitGenerator
source: /numpy/random/bit_generator.cpython-314-x86_64-linux-gnu.so
Signature
class BitGenerator ( seed = None ) Members
Summary
Base Class for generic BitGenerators, which provide a stream of random bits based on different algorithms. Must be overridden.
Parameters
seed: {None, int, array_like[ints], SeedSequence}, optionalA seed to initialize the BitGenerator. If None, then fresh, unpredictable entropy will be pulled from the OS. If an
intorarray_like[ints]is passed, then it will be passed to SeedSequence to derive the initial BitGenerator state. One may also pass in a SeedSequence instance. All integer values must be non-negative.
Attributes
lock: threading.LockLock instance that is shared so that the same BitGenerator can be used in multiple Generators without corrupting the state. Code that generates values from a bit generator should hold the bit generator's lock.
See also
Aliases
-
numpy.random.BitGenerator