![]() |
| | #16 | |
| Kernel hacker Join Date: Jul 2007 Location: Farncombe, Surrey, England
Posts: 15,686
| I have said to myself more than once, with a rather irritated voice "You IDIOT! - What were you thinking?" [I even hit the keys hard when I wrote that to make it more emphasized, can you tell?]. As programming requires a certain level of detail mindedness, it happens that we make mistakes. Quote:
-- Mats
__________________ Compilers can produce warnings - make the compiler programmers happy: Use them! Please don't PM me for help - and no, I don't do help over instant messengers. | |
| matsp is offline | |
| | #17 |
| Registered User Join Date: Sep 2008
Posts: 7
| Actually I had read a few quite a few "srand call only once" posts and of course everyone's helpful hints. The devil is in the details as they say. It wasn't my intention to continually call srand but that's what I was doing! All I can say is that I won't be making that mistake again. Thanks to everyone for their help - it did lead me to realize the errors of my ways, N. |
| Newton is offline | |
| | #18 |
| Banned Join Date: Aug 2001 Location: Visalia, CA, USA
Posts: 3,699
| Well you didn't murder a kitten or anything. Its just going to slow down your code while performing a redundant task. People like me get paid good money to correct code where people have done similar mistakes. Knowledge is power and even had we not told you this fact I think through mere observation you would have eventually realized what was really going on here. |
| master5001 is offline | |
![]() |
| Tags |
| generation, number, random, rapid |
| Thread Tools | |
| Display Modes | |
|
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Random number issue | swgh | C++ Programming | 15 | 11-14-2008 10:12 AM |
| adding a number to a number | bigmac(rexdale) | C Programming | 11 | 10-24-2007 12:56 PM |
| Problem with random number generation | HAssan | C Programming | 1 | 03-27-2007 05:49 PM |
| Random number generation | scrub05 | C++ Programming | 5 | 01-07-2005 08:20 AM |
| Prime number program problem | Guti14 | C Programming | 11 | 08-06-2004 04:25 AM |