Is there a way to find how many times the C library function rand() has been called during an execution of a program? The program is written by myself thus its code can be edited.
I can find how many times rand() is called using Visual Studio debugger. However, I found that my program produces different random number sequence when running outside the debugger. Thus I want to investigate the invocation times outside the debugger as well.
Thanks.