numpy.random.seed

Standard library module View source
variable DEFAULT_POOL_SIZE
DEFAULT_POOL_SIZE = 4
variable INIT_A
INIT_A = u32(0x43b0d7e5)
variable MULT_A
MULT_A = u32(0x931e8875)
variable INIT_B
INIT_B = u32(0x8b51f9dd)
variable MULT_B
MULT_B = u32(0x58f38ded)
variable MIX_MULT_L
MIX_MULT_L = u32(0xca01f9dd)
variable MIX_MULT_R
MIX_MULT_R = u32(0x4973f715)
variable XSHIFT
XSHIFT = u32(((4 * 8) // 2))
variable MASK32
MASK32 = u32(0xFFFFFFFF)
function hashmix
hashmix(value: u32, hash_const: u32)
function mix
mix(x: u32, y: u32)
function random_seed_time_pid
random_seed_time_pid()
class SeedSequence
class SeedSequence
Fields 4
entropy ndarray[u32, ?]
pool_size int
n_children_spawned int
pool ndarray[u32, ?]
Constructors 1
__init__
__init__(self, entropy = None, spawn_key: Optional[List[int]] = None, pool_size: int = DEFAULT_POOL_SIZE, n_children_spawned: int = 0)
Properties 1
spawn_key
@property
spawn_key(self)
Methods 2
generate_state
generate_state(self, n_words: int, dtype: type = u32)
spawn
spawn(self, n_children: int)