Difference between revisions of "cpp/numeric/random/srand"
From cppreference.com
m (Text replace - "{{return none}}" to "(none)") |
(rand -> srand) |
||
Line 1: | Line 1: | ||
− | {{cpp/title| | + | {{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)