באמת?
באיזה C זה עובד ככה בדיוק? זה מה שמגדיר ANSI: int rand( void ); Return Value rand returns a pseudorandom number, as described above. There is no error return. Remarks The rand function returns a pseudorandom integer in the range 0 to RAND_MAX. Use the srand function to seed the pseudorandom-number generator before calling rand. התלבלבת עם פסקל לדעתי, שם זה מה שאתה כותב.