| | |
Program Help
Please support our C++ advertiser: Intel Parallel Studio Home
![]() |
You might be calling srand(), but I don't see any code calling rand() as yet.
Post your latest code.
> It seems you have to change the srand value from srand ( time(NULL) );
> to srand (1); after rolling the die.
Calling srand(time(NULL)); just ONCE at the start of the program is usually sufficient to change things around from one run to another.
Post your latest code.
> It seems you have to change the srand value from srand ( time(NULL) );
> to srand (1); after rolling the die.
Calling srand(time(NULL)); just ONCE at the start of the program is usually sufficient to change things around from one run to another.
![]() |
Similar Threads
- Playing .Wav/MIDI files in a Visual Basic Program (Visual Basic 4 / 5 / 6)
- What's the HARDEST program you've written? (Computer Science)
- Cool little Program to disable startup programs (Windows NT / 2000 / XP)
- Program is shutting down right after program is executed (C++)
- 3d Program (Game Development)
Other Threads in the C++ Forum
- Previous Thread: Tutorial Help =(
- Next Thread: Strings and the new operator?
| Thread Tools | Search this Thread |
api array arrays beginner binary bitmap c++ c/c++ calculator char char* class classes coding compile compiler console conversion convert count data database delete desktop developer directshow dll dynamic dynamiccharacterarray email encryption error file forms fstream function functions game getline google graph homeworkhelper iamthwee ifstream input int integer java lib linkedlist linker linux loop looping loops map math matrix memory multiple news node number numbertoword output parameter pointer problem program programming project proxy python random read recursion recursive reference return rpg sorting string strings struct template templates test text tree unix url vector video visualstudio win32 windows winsock word wordfrequency wxwidgets






