Why did I get the same result after using rand()?
Asked by
guoronghua
I use the 4.8 2014 q3. In my program, everytime I called rand(), the results were the same.
I tried to call srand(seed), but it didn't work. The output of rand() didn't change..
Please help me.
Question information
- Language:
- English Edit question
- Status:
- Answered
- Assignee:
- No assignee Edit question
- Last query:
- Last reply:
Can you help with this problem?
Provide an answer of your own, or ask guoronghua for more information if necessary.
To post a message you must log in.