-2
Good night, you guys. Well, I’m taking a C programming course and in this course I have a challenge, to create a game of jokenpô.
I started doing the code part of the game and such and the part that the user chooses which object of the jokenpo will use worked, however I am not able to make a variable receive the random value generated by the function srand.
Sorry for the doubt, guys, I’m starting a little while ago haha I thank you.
In the library
stdlib.h
, use the functionrandom
. Rather generate a seed and feed thesrandom
.– Jefferson Quesado
If this tip ode question were in scope, it would have several answers already posted before: https://answall.com/questions/tagged/c%2brandom? tab=Votes.
– Maniero