Anonymous user
Talk:Pick random element: Difference between revisions
added a "talk" section header (for when there are more talk sections to be added later).
(Created page with "The task should clarify if the elements should be taken at random with equal probability (that is, discrete uniform distribution, insofar as the underlying pseudorandom genera...") |
(added a "talk" section header (for when there are more talk sections to be added later).) |
||
(One intermediate revision by one other user not shown) | |||
Line 1:
===task clarification===
The task should clarify if the elements should be taken at random with equal probability (that is, discrete uniform distribution, insofar as the underlying pseudorandom generator allows this). It seems obvious, but it's not stated, and if so, there are wrong entries in the page.
For instance, the C program does not yield a uniform distribution.
The same bad C code is reused in the [[Loops/Break]] task, and I fear many could use the Rosetta Code program as is without suspecting a problem.
|