Namespaces
Variants
Views
Actions

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

From cppreference.com
< cpp‎ | numeric‎ | random
m (Text replace - "{{return none}}" to "(none)")
(rand -> srand)
Line 1: Line 1:
{{cpp/title|rand}}
+
{{cpp/title|srand}}
 
{{cpp/numeric/random/sidebar}}
 
{{cpp/numeric/random/sidebar}}
 
{{ddcl | header=cstdlib |  
 
{{ddcl | header=cstdlib |  

Revision as of 15:45, 30 October 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.

Contents

Parameters

seed - the seed value

Return value

(none)

Example

Template:example cpp

See also

Template:cpp/numeric/random/dcl list rand