Namespaces
Variants
Views
Actions

srand

From cppreference.com
Defined in header <stdlib.h>
void srand( unsigned seed );

Initializes the built-in random number generator used to generate values for rand() with the seed value seed.

Contents

[edit] Parameters

seed - the seed value

[edit] Return value

(none)

[edit] Example

[edit] See also

generates a pseudo-random number
(function) [edit]