Concerning the modulo portion of the code. | Sololearn: Learn to code for FREE!
Новый курс! Каждый программист должен знать генеративный ИИ!
Попробуйте бесплатный урок
0

Concerning the modulo portion of the code.

I don't really understand why the modulo portion of the code was made to be 1+rand()%6 to get value 6 and below. Couldn't it just be rand() %7?

1st Nov 2017, 1:50 PM
Denzil Bilson
Denzil Bilson - avatar
0 ответов