I figured it out. I apologize for the ambiguous post. I was calling srand(time(NULL)) inside a loop on accident so when I stepped through the code line by line in DDD, the time changed a little bit, changing the seed. However this was not the case when it my program rand and completed in less than a second.
So: If anything weird starts happening and you are using srand(). First make sure you've got srand() in the right place. -cheers ryan On Wed, 2003-03-12 at 20:25, Peter Jay Salzman wrote: > begin Ryan <[EMAIL PROTECTED]> > > I'm trying to debug some code I've written using DDD. When I step > > through the code one line at a time or use breakpoints at all, I get the > > correct behavior, however, when I run the program from the console or > > run it in ddd without any break points, the results are wrong. There is > > some random number generation in my code, but other than that I don't > > know what could be causing the difference in behavior. > > > > -ryan > > what exactly are you asking? > > pete > > -- > First they ignore you, then they laugh at you, then they fight you, > then you win. -- Gandhi, being prophetic about Linux. > > Fingerprint: B9F1 6CF3 47C4 7CD8 D33E 70A9 A3B9 1945 67EA 951D > _______________________________________________ > vox-tech mailing list > [EMAIL PROTECTED] > http://lists.lugod.org/mailman/listinfo/vox-tech > _______________________________________________ vox-tech mailing list [EMAIL PROTECTED] http://lists.lugod.org/mailman/listinfo/vox-tech
