Home > Electronics Tutorials > C Language Tutorial > stdlib.h - Math Functions - srand

C Language Programming Library Reference Guide

stdlib.h - Math Functions - srand

Declaration: void srand(unsigned int seed); This function seeds the random number generator used by the function rand. Seeding srand with the same seed will cause rand to return the same sequence of pseudo-random numbers. If srand is not called, rand acts as if srand(1) has been called.

No value is returned.

Note: To report broken links or to submit your projects, tutorials please email to Webmaster

Discover

     more......