Thread: Random Number
View Single Post
Old Nov 30th, 2005, 4:55 PM   #18
Ooble
I eat cake for breakfast.
 
Ooble's Avatar
 
Join Date: Jul 2004
Location: In my box.
Posts: 4,434
Rep Power: 9 Ooble is on a distinguished road
Hacker, you're creating a whole new variable called a inside the loop every iteration that replaces the one outside the loop for its duration. Remove the "int".

BN, why not use ctime instead of time.h? This is C++ ya know.
__________________
Me :: You :: Them
Ooble is offline   Reply With Quote