One important point that you are not considering is how predictable the generated random sequence is. Using time () as the seed of randomness, if the attacker knows - more or less - when the seed was generated, he can easily reproduce your entire random sequence.
That's why you need a true random source, assuming you use these random numbers for something related to security.
When security really matters, you also want to get each of your numbers from a true random source, without relying on PRNG at all. Slow but safer.
Hexagon
source share