lundi 9 février 2015

Time(NULL) returns always the same

I want to look for "random" numbers so I need to initialize the seed. In order to archive this I use:



seed=time(NULL);


My problem is that time(NULL) is always giving me the same date (1105222769=>Sat, 08 Jan 2005 22:19:29 GMT). What's wrong?





Aucun commentaire:

Enregistrer un commentaire