#ZyBook 2.17

19 messages · Page 1 of 1 (latest)

thorn snow
#

I am confused what to do here I have read it multiple times but don't know what I am doing wrong except for it is in the rand() part of the lines of code.

honest kestrelBOT
#

When your question is answered use !solved to mark the question as resolved.

Remember to ask specific questions, provide necessary details, and reduce your question to its simplest form. For tips on how to ask a good question use !howto ask.

#

@thorn snow

Screenshots!

Your message appears to contain screenshots but no code. Please send code and error messages in text instead of screenshots if applicable!

thorn snow
#

I took out the arguments(seedval) but it still says it's wrong.

thorn snow
oak meteor
#

thats what the assignment asks you to do

thorn snow
oak meteor
#

passing seedVal to srand would look like srand(seedVal);

thorn snow
oak meteor
#

rand() returns a integer between 0 and RAND_MAX, not 0 and 9

#

you need to use the modulo operation % to constrain it between 0 and 9

thorn snow
#

ok, I think I did that but I did rand()%9 for both lines

thorn snow
#

its ten

#

how do I close this

#

solved!