Talk:Loops/Break: Difference between revisions
Content added Content deleted
(Created page with "== C task == There is a minor problem: the program should print another random number before restarting the loop. There is a very annoying problem: see [Talk:Pick random elem...") |
No edit summary |
||
Line 2: | Line 2: | ||
There is a minor problem: the program should print another random number before restarting the loop. |
There is a minor problem: the program should print another random number before restarting the loop. |
||
There is a very annoying problem: see [Talk:Pick random element]], where there is an identical fundamental mistake in the C program. While neither of the tasks states explicitly that the distribution has to be uniform, it seems to me that it's implicit in the question. |
There is a very annoying problem: see [[Talk:Pick random element]], where there is an identical fundamental mistake in the C program. While neither of the tasks states explicitly that the distribution has to be uniform, it seems to me that it's implicit in the question. |
||
The solutions given for several other languages use a bad method to generate the random numbers. I understand that for this task it's not fundamental, but then at least it should be stated somewhere that the method is poor. |
|||
[[User:Eoraptor|Eoraptor]] ([[User talk:Eoraptor|talk]]) 22:30, 26 August 2017 (UTC) |
[[User:Eoraptor|Eoraptor]] ([[User talk:Eoraptor|talk]]) 22:30, 26 August 2017 (UTC) |