I am completely lost with this random number generator thing. It is included in my homework and I've never used it before. My teacher has recommended using the dice roll game as an example but I don't know how to implement everything he wants. I have already looked through several threads, this: seed random numbers in c was the last one. I'm just getting more confused the more I research the topic.
I have to generate up to ten random numbers and then generate random operators (ie: * + - / %)and incorporate them into math problems using the random numbers and operators. In example. If these numbers were generated: 4,5,6,7,9 They would need to be used in different equations like 4 * 5 or 6 +7 based on how many questions the user inputs(ie they will answer 5 questions so the computer would read 5 through scanf function. I don't have any idea how to put this all together. Can anyone help me think out this problem. Can someone dumb down this concept to me with examples? Thanks!
Aucun commentaire:
Enregistrer un commentaire