cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
General C++ Programming
Problems With srand()
Problems With srand()
Oct 13, 2008 at 1:00am UTC
CTucci87
(3)
I tried to seed with time(0) and time(null) and it responds that time cannot convert into an unsigned int. I'm using Visual C++ and Vista.
Oct 13, 2008 at 1:30am UTC
CTucci87
(3)
I worked it out all I had to do was cast time as unsigned. I just changed compilers and never had to cast the values with my old compiler. I guess I'll just go put on my Dunce Cap.
Topic archived. No new replies allowed.