This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

question on rand()


Hello,

I am using gcc on a unix machine. Can you tell me how many random numbers can be generated using

rand()

before the random numbers start repeating? I found that RAND_MAX is equal to 2147483647.

Thanks,
Anna


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]