Layer scrambler in Python-Fu or Script-Fu

Job ID: 32151078

Budget: $30 – $250 USD

I need someone to code a script in Python-Fu or Script-Fu that makes random combination of layers based on their name. For example, unhide only one layer that starts with "eyes" (from among eyes01, eyes02, etc.) and hide every other "eyes" layer. The same for the set of "hair" layers, "pants" layers, etc. There will be about 10 sets of layers, and each combination will be exported to PNG.
The combinations will be random, but I want a fixed percentage of all generated PNGs to use each layer (for example, 6% of the PNGs will use "eyes01" and 10% will use "eyes02".
Also, I need the script to write a JSON document that includes the information of each of the generated PNGs (which layers were used for each PNG).
Related categories: Python Scheme GIMP