pcg-java icon indicating copy to clipboard operation
pcg-java copied to clipboard

The Implementation of Jump & Distance methods are missing

Open HouariZegai opened this issue 5 years ago • 1 comments

Are you planning to add the Jump and Distance method, or any suggestion on how to implement it?

HouariZegai avatar Apr 28 '20 16:04 HouariZegai

any suggestion on how to implement it

I would just look at the original code at https://github.com/imneme/pcg-cpp/blob/master/include/pcg_random.hpp (I think Jump is called advance there). Java does not support unsigned types, but see methods like Integer.divideUnsigned. If it's enough for you to do so, please do, and if you can make a pull request. If it isn't and you need them, I'll try to get around to it, but not sure when :(

Otherwise I wasn't planning to work on this anymore, it was created because of

Java Implementation

Coming later... (you could help!)

on https://www.pcg-random.org/download.html#id5, but the author wasn't interested.

alexeyr avatar Apr 30 '20 09:04 alexeyr