Приглашаем посетить
Ларри (larri.lit-info.ru)

Reference: srand

PreviousChapter 5
Function Reference
Next
 

srand

srand expr

Sets the random number seed for the rand operator so that rand can produce a different sequence each time you run your program. If expr is omitted, a default seed is used that is a mix of difficult-to-predict, system-dependent values. If you call rand and you haven't called srand yet, rand calls srand with the default seed.


PreviousHomeNext
Reference: sqrtBook IndexReference: stat