0

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

22nd Jul 2016, 5:08 AM
Goitse
1 Odpowiedź
0
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.
27th Jul 2016, 9:43 PM
destro