So the game I am making has only one main level. Every time a player starts, I want the background to randomize so the experience is better.
I also have want to randomize a foreground but match with a specific background.
Example: I have 5 backgrounds and 5 foregrounds.
Let's say background randomization works:
If background 1 shows up, I want foreground 1 to show up, Not foreground 2-5.
If background 4 shows up, I want foreground 4 to show up, Not 1-3, and 5.