Generating random background and sprite palettes.