5 ms·
You are quite right, of course. One should only tolerate such quick and dirty solutions if M is much bigger than n - but then, that is often the case.
by jbaagoe 15y ago
You are quite right, of course. One should only tolerate such quick and dirty solutions if M is much bigger than n - but then, that is often the case.
- deleted 15y ago[deleted]
- acqq 15y agoI've made a test to get numbers 0..99 from C stdlib random which gives 16-bit numbers and has a period of 2 to 32 and that was enough to actually see bias if enough numbers (but much less than a period) are generated. Even for such a small range. I'd say the problem is very real, not just theoretic.