I'm trying to find a set of random numbers between 1 and 365, so I tried to use:

`DayOfBirth = rand() % 365 + 1;`

But, I've been told that srand() will produce a better random number, is this true? How do I use it for this instance?

Recommended Topics