Several questions have recently been asking about random. I see a lot of answers in those questions using the date not as a seed but as the random number that is then modulo'ed.
Seen in Java:
Doing so is randomly unfair for two reasons:
- the code will often return the same values if run in quick successions, also if the time ticks during two runs, you know you'll get the next value. You may be surprised by the first run, making it random, but not by the next ones.
- the the modulo bias is then alive and well.
What are the views of the community on this topic?