if (Math.trunc(e[i]) == 4) {
let v = ran(0, 10);
if (v > 0 && v < 8) {
ctx.drawImage(spriteImage, 0, 0, 32, 32, cx, cy, 32, 32);
} else {
ctx.drawImage(spriteImage, 32, 0, 32, 32, cx, cy, 32, 32);
}
if (e[i] === 4) {
ctx.drawImage(spriteImage, 32, 192, 32, 32, cx, cy, 32, 32);
} else if (e[i] === 4.1) {
ctx.drawImage(spriteImage, 160, 256, 32, 32, cx, cy, 32, 32);
}
cx += 32;
}