std::rand

From Cppreference

Jump to: navigation, search
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

rand
generates a pseudo-random number
(function)