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
1 Answer