...

View Full Version : can anyone help to explain srand



xiaodao
06-12-2005, 05:17 PM
what is srand?
or i more keen to know what is seed?

please

scroots
06-12-2005, 05:43 PM
a seed is a number you start from as many random number generators are not random at all.

They start with a number (the 'seed') then they apply a calculation to it to get the second random number, then the same calulation is applied to the second number to achieve the third and so on.

so a seed is a number you start from.


scroots



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum