79089919

Date: 2024-10-15 12:30:46
Score: 2.5
Natty:
Report link

@chux Yes, the result of the first call to rand after srand appears to be an almost linear function of the seed. On my computer, that is. The results of rand increased by 3 or 4 for each increase of 1 second in the system time, when I used time as the seed.
I changed how the program uses the rand function so it's not a linear function of the seed, and put the improved version in my post.

Reasons:
  • No code block (0.5):
  • User mentioned (1): @chux
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: lorasaur