Skip to content

Is wy2u01 mistakenly not making use of all 53 bits? #149

@redoak

Description

@redoak

Current implementation:

wy2u01(uint64_t r){ const double _wynorm=1.0/(1ull<<52); return (r>>12)*_wynorm;}

I believe this should be <<53 and >>11 in order to get the highest number of possible results (while still being evenly spaced).

See:

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