Skip to content

Setting seed before randn #2

@vineetbansal

Description

@vineetbansal

Hello,
Thanks for this most useful port. I'm trying to use this library to help with porting some code from Matlab (which uses the Ziggurat algorithm for randn) to Python. Perhaps I missed this in the documentation..is there a way to set the random seed of the algorithm just before calling randn? I tried using numpy's set_state function before every invocation (by using a saved state) and every call to randn gives me a different result, so perhaps I'm using it incorrectly.

Thanks!

Metadata

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