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

gcc implementation of rand() function


Hello!

I am trying to study implementation of rand() function in C language.

I tried to search the source code of gcc, but didnt find it. Could You be so nice and help me?

As i far as i know, a usual implementation uses Linerar Congruential Generator. What i am really intrested what constants does gcc implementation use?

Thankfully,
Anton Litvinenko

- Jumalamuidu Mallorcale puhkama?! Kliki kohe! http://1699.delfi.ee/?id=15
- Kui tahad sõita KIA Carnivaliga või võita 5000 krooni, siis kliki siia!
http://auto24.delfi.ee/kampaania/reg.php


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