Skip to main content

numpy.random.pcg64

Standard library Module View source
alias u128
u128 = UInt[128]
Alias of UInt[128]
function pcg_int
pcg_int(hi, lo)
variable PCG_DEFAULT_MULTIPLIER_HIGH
PCG_DEFAULT_MULTIPLIER_HIGH = u128(2549297995355413924)
variable PCG_DEFAULT_MULTIPLIER_LOW
PCG_DEFAULT_MULTIPLIER_LOW = u128(4865540595714422341)
variable PCG_DEFAULT_MULTIPLIER_128
PCG_DEFAULT_MULTIPLIER_128 = pcg_int(PCG_DEFAULT_MULTIPLIER_HIGH, PCG_DEFAULT_MULTIPLIER_LOW)
variable PCG_DEFAULT_INCREMENT_128
PCG_DEFAULT_INCREMENT_128 = pcg_int(6364136223846793005, 1442695040888963407)
variable PCG_STATE_SETSEQ_128_INITIALIZER
PCG_STATE_SETSEQ_128_INITIALIZER = (pcg_int(0x979c9a98d8462005, 0x7d3e9cb6cfe0549b), pcg_int(1, 0xda3e39cb94b95bdb))
variable PCG_CHEAP_MULTIPLIER_128
PCG_CHEAP_MULTIPLIER_128 = ((u128(0xda942042) << u128(32)) | u128(0xe4dd58b5))
variable PCG64_INITIALIZER
PCG64_INITIALIZER = PCG_STATE_SETSEQ_128_INITIALIZER
function rotr64
rotr64(value: u64, rot: int)
class PCG64
class PCG64
Fields 3
state u128
inc u128
seed SeedSequence
Constructors 2
__init__
__init__(self: Self, initstate: u128, initseq: u128, seed: SeedSequence)
__init__
__init__(self: Self, seed)
Methods 14
setseq_128_step_r
setseq_128_step_r(self: Self)
output_xsl_rr_128_64
output_xsl_rr_128_64(self: Self)
setseq_128_xsl_rr_64_random_r
setseq_128_xsl_rr_64_random_r(self: Self)
setseq_128_srandom_r
setseq_128_srandom_r(self: Self, initstate: u128, initseq: u128)
advance_lcg_128
advance_lcg_128(self: Self, delta: u128, cur_mult: u128, cur_plus: u128)
setseq_128_advance_r
setseq_128_advance_r(self: Self, delta: u128)
random_r
random_r(self: Self)
srandom_r
srandom_r(self: Self, initstate: u128, initseq: u128)
advance_r
advance_r(self: Self, delta: u128)
next64
next64(self: Self)
pcg_advance
pcg_advance(self: Self, step: Tuple[(u64, u64)])
advance
advance(self: Self, step: int)
jump_inplace
jump_inplace(self: Self, jumps: int)
set_seed
set_seed(self: Self, seed: Tuple[(u64, u64)], inc: Tuple[(u64, u64)])
Special methods 2
__get_state__
__get_state__(self: Self)
__set_state__
__set_state__(self: Self, state)
class PCG64DXSM
class PCG64DXSM
Fields 3
state u128
inc u128
seed SeedSequence
Constructors 2
__init__
__init__(self: Self, initstate: u128, initseq: u128, seed: SeedSequence)
__init__
__init__(self: Self, seed)
Methods 14
cm_step_r
cm_step_r(self: Self)
setseq_128_srandom_r
setseq_128_srandom_r(self: Self, initstate: u128, initseq: u128)
srandom_r
srandom_r(self: Self, initstate: u128, initseq: u128)
setseq_128_step_r
setseq_128_step_r(self: Self)
output_cm_128_64
output_cm_128_64(self: Self)
cm_random_r
cm_random_r(self: Self)
cm_srandom_r
cm_srandom_r(self: Self, initstate: u128, initseq: u128)
advance_lcg_128
advance_lcg_128(self: Self, delta: u128, cur_mult: u128, cur_plus: u128)
cm_advance_r
cm_advance_r(self: Self, delta: u128)
next64
next64(self: Self)
pcg_advance
pcg_advance(self: Self, step: Tuple[(u64, u64)])
advance
advance(self: Self, step: int)
jump_inplace
jump_inplace(self: Self, jumps: int)
set_seed
set_seed(self: Self, seed: Tuple[(u64, u64)], inc: Tuple[(u64, u64)])
Special methods 2
__get_state__
__get_state__(self: Self)
__set_state__
__set_state__(self: Self, state)