Why does this happen

On my enemies, I made a random chance of dropping an apple, but every time they get killed the number is always 9, does someone know why?
Here’s my game- https://flowlab.io/game/play/1068924

I’m not positive as to why the number always becomes 9, but I do know that you can shorten the code down by making the random block connect right to the filter block instead of it going through the number blocks. Those are essentially pointless and could be causing the bug.

Thats an easy one, its because your outputting all the number blocks at the same time.
The random block already ouputs a number, you dont really need all the number blocks…

2020.02.14-15.45