3 ms·
I don't believe it removes bias. By pigeon-hole-principle-related reasoning, you cannot map, say, 65536 values to 17 values without bias. The method redistribu
by kazinator 5y ago
I don't believe it removes bias. By pigeon-hole-principle-related reasoning, you cannot map, say, 65536 values to 17 values without bias.
The method redistributes the bias compared to straight modulo.
You won't get a uniform distribution with this, just a differently shaped one compared to modulo.