How does placing different numbers in the time parameter affect the output?

7/22/2016 5:08:23 AM


1 Answer

New Answer


assuming you're referring to the srand, this has to do with a seed. we make the rand function random by supplying it with a seed. it takes this number runs some algorithm and spits out numbers. of we seed it to 15, then it will have a set output. if we use a something like time (NULL), this is using the current clock time and thus creates a constantly random seed.