Stats, stage number you start on, spells equipped, if the default spells are upgraded, and enemy stats are random.
I recommend double clicking the green flag, or else it might not work.