JuliaSIMD / JuliaSIMD/VectorizedRNG.jl

Generate integer numbers

Open
#3 3 comments 0 reactions 0 assignees View on GitHub
Dominant language
Julia
Stars
36
Forks
7
PR merge metrics
No merged PRs in 30d

Description

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+."

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.