3 ms·
Perhaps just an artifact of a weak PRNG or not truly uniform distribution?
by detrino 11y ago
Perhaps just an artifact of a weak PRNG or not truly uniform distribution?
- Sharlin 11y agoNo. A truly uniform random distribution indeed has "clumps".
- detrino 11y agoAnd a poor PRNG or poor implementation of a uniform distribution (both extremely common, for example: rand() % max) has more clumps, my question is still valid. Edit: I wrote a program[1] to fill random pixels based on rand/modulo and mersenne twister/uniform distribution and I could not tell the difference in the generates images. [1] https://gist.github.com/anonymous/9c726ea636f06900ba3a https://gist.github.com/anonymous/9c726ea636f06900ba3a