Heed the advice of std10093. The only reason I went through your code is because I'm feeling generous this morning.



srand( time( NULL) );


This should only be called once, at the start of...