home *** CD-ROM | disk | FTP | other *** search
/ C by Discovery (4th Edition) / C_By_Discovery_4th_Edition.tar / C_By_Discovery_4th_Edition / _HANDBOOK_ / APDX_F / F-24.jpg < prev    next >
Joint Photographic Experts Group Image  |  2013-12-18  |  610KB  |  2550x3300
Labels: binder | book | computer | crt screen | monitor | poster | reckoner | screen
OCR: F-24 Programmer's Handbook rand( void random number generator that returns a ran- dom implementation- number between -defined constant and RAND MAX, Parameters none Return value nonnegative value of type int Example See discussion of srand() below srand( seed seeds (initializes) the random number generator rand always () return The the random same number sequence generator of random would numbers unle less seeded by call srand() Parameters seed can with be any different unsig igned value int of seed value. but is usually a value associated with the current time or some ofa other value program that to will another change from one execution Return value none srand has type void Note Examples cast call rand srand to to the match uns time the that gned types the library in the seeding ime func ...