This is a tutorial on how to spawn a sprite at a specific y coordinate but a random x coordinate. Inside you will find comments telling you what everything means and what you can and what you can't change.
All code by me