Comment by ~cuviper on ~icefox/oorandom
No problem, thanks for considering it.
Feature added by ~cuviper on ~icefox/oorandom
Ticket created by ~cuviper on ~icefox/oorandom
I noticed in the latest
rust-analyzer
release that they useoorandom
to shuffle indices, which they do with casts betweenu32
andusize
.It might be nice if
oorandom
had native support for this, something likeRandSize
that wraps eitherRand32
orRand64
according to the target pointer width. It would have integer methodsrand_usize
andrand_isize
, no need for floats, and the rest of the API would be the same. I'm not sure what would be best for seed and state types though...