Skip to content

Generate integer numbers #3

Description

@PallHaraldsson

Hi,

It seems these (and all?) RNGs generate integer numbers behind the scenes, but I couldn't get them to generate such:

julia> rand(local_rng(), 1:3)
ERROR: MethodError: no method matching rng_native_52(::VectorizedRNG.Xoshift{4})

Is it just that floating point is currently implemented (and exported) but integer isn't yet? Or did I overlook how, or even not meant for integer? I found:

"xoroshiro128+ 1.0, our best and fastest small-state generator for floating-point numbers. [..] If you are concerned, use xoroshiro128** or xoshiro256+."

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions