+ 1

Why does this code sometimes print strange characters or sometimes have sections with only 3 chars?

https://code.sololearn.com/c00FR11E59we/?ref=app iirc rand()%27 will result in a random number from 0 to 26 and not 27, so that's not the issue. Unless I'm wrong?

6th Mar 2019, 9:23 PM
Daniel Cooper
Daniel Cooper - avatar
3 Respuestas
+ 1
%27 will give you values from 0 to 26 - which add up to 27 values. The arrays only gave 26.
6th Mar 2019, 9:31 PM
HonFu
HonFu - avatar
+ 3
😂
6th Mar 2019, 11:58 PM
HonFu
HonFu - avatar
+ 2
me has a dumb me no can brain today Sorry for the inconvenience xD
6th Mar 2019, 11:48 PM
Daniel Cooper
Daniel Cooper - avatar