This is the mail archive of the gcc-bugs@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]

[Bug c/34096] Random number generates the same set of numbers



------- Comment #2 from rsanghavi at gmail dot com  2007-11-14 22:32 -------
Andrew,

Thanks for answering my question.
But, even if you seed it, the result is the same unless you seed it with a
random number. I use (time(0) + random number) as seed in my code.
I am unaware and so asking you, if you have any idea of the project name random
function belongs to?


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34096


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