Namespaces
Variants
Views
Actions

std::srand

From cppreference.com
< cpp‎ | numeric‎ | random
Revision as of 15:45, 30 October 2011 by Nate (Talk | contribs)

Template:cpp/numeric/random/sidebar

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

Parameters

seed - the seed value

Return value

(none)

Example

Template:example cpp

See also

Template:cpp/numeric/random/dcl list rand