i am trying to generate random numbers but at times, the numbers are not random..get duplicates i know this means random..
when i put srand(time(NULL)) before the loop, it gets the system time before the program starts ..
but is there a way to change it to take the system time that changes every milisecond or nanosecond.. i have searched the internet..i did not find anything except program time
Start Free Trial