Skip to content

Difference in .jumped() behavior between numpy and randomgen PCG64 #398

Open
@gahtan-syarif

Description

It seems .jumped() when applied to PCG64 bitgenerator advances the state by different amounts when using numpy and randomgen's implementation. This is true even when numpy_seed parameter is set to True. Looking at numpy documentation and randomgen code it seems that numpy has a more sophisticated jump mechanism where it advances the state based on a value derived from the golden ratio to reduce correlation between streams, while randomgen jumps by multiples of 2^64. Now is this deviation from numpy's jump implementation intentional? Or is it possible to make randomgen's behavior the same as that of numpy's?

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions