4 ms·
This sounds quite similar to the fastrange [0] method. I’ve used it for random sampling but not a hash table. It’d be great for non-power-of-two tables while av
by stochastic_monk 8y ago
This sounds quite similar to the fastrange [0] method. I’ve used it for random sampling but not a hash table. It’d be great for non-power-of-two tables while avoiding integer modulus.
[0] https://github.com/lemire/fastrange https://github.com/lemire/fastrange
- lower 8y agofastrange is discussed in the article.