Thank you for the review! I would say that the rng system that I made ensures that every regular part is spawned before there's repeats. But sometimes it's just the system that just refuses to spawn regular parts and you get either junk/capsule.
The game has some good mechanics like being able to upgrade and rebuild before spawning the next wave. However as highlighted by the other comments the machine gun's movement is a little rough but I believe with a bit more polishing and experience you can make something good !