Namespaces
Variants
Views
Actions

Difference between revisions of "cpp/numeric/random/srand"

From cppreference.com
< cpp‎ | numeric‎ | random
m (Text replace - "{{returns}}" to "===Return value===")
m (Text replace - "{{example}}" to "===Example===")
Line 18: Line 18:
  
 
<!-- ======== -->
 
<!-- ======== -->
{{example}}
+
===Example===
 
{{example cpp
 
{{example cpp
 
  | code=
 
  | code=

Revision as of 17:58, 2 August 2011

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.

Parameters

seed - the seed value

Return value

Template:return none

Example

Template:example cpp

Template:see also

Template:cpp/numeric/random/dcl list rand