Solutionunvalidated
this is now implemented in C++ library in GCC and in Visual C++ — If you have chunk of random bits coming in the range [0...N). Tension: you want output in the range [0...M). Outcome: Daniel Lemire proposed fast method to do that. Check his paper for details.
96cfbdaa-4755-41e9-a9af-e5a32be47180
this is now implemented in C++ library in GCC and in Visual C++ — If you have chunk of random bits coming in the range [0...N). Tension: you want output in the range [0...M). Outcome: Daniel Lemire proposed fast method to do that. Check his paper for details.