code correction rand

old ->$i=rand(0,4);

new ->$i=rand(0,3);
#####  4 give error