I'd like to know how I could make random formations or patterns of enemies for a vertical shooter.
Develop games in your browser. Powerful, performant & highly capable.
You mean something like Galaga?
I guess the simplest way is using waypoints, check this tutorial:
https://www.scirra.com/tutorials/1113/a ... -waypoints