You change to a random number when you jump, but you attack by jumping? It's impossible to guarantee you'll jump at an enemy and not die.
Viewing post in Cube Rush - GMTK Game Jam 2022 jam comments
I see what you mean about it being impossible to know what number you'll get while jumping at an enemy. So with that in mind, I would jump around to try to get a number that matched an enemy on the screen, then wait for it to move towards and when it was close enough I'd run into it to destroy it. For enemies that didn't match my number, I'd try to jump around them. I found playing that way to be challenging and fun.