Namespaces
Variants
Views
Actions

std::rand

From cppreference.com
< cpp‎ | numeric‎ | random
Revision as of 18:16, 2 August 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

Template:return none

Example

Template:example cpp

See also

Template:cpp/numeric/random/dcl list rand