Difference between revisions of "cpp/numeric/random/srand"
From cppreference.com
m (Text replace - "{{returns}}" to "===Return value===") |
m (Text replace - "{{example}}" to "===Example===") |
||
Line 18: | Line 18: | ||
<!-- ======== --> | <!-- ======== --> | ||
− | + | ===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 |