Namespaces
Variants
Views
Actions

std::srand

From cppreference.com
 
 
 
 
Defined in header <cstdlib>
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]
C documentation for srand