Namespaces
Variants
Views
Actions

std::rand

From cppreference.com
< cpp‎ | numeric‎ | random
Revision as of 13:32, 11 October 2011 by P12bot (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