Selecting Random PreDefined Colors
in
Programming Questions
•
1 month ago
Hi , I wanted to make a Function to randomly select one of these arrays :
color[] Theme1 = {
#1F3C57, #427283, #F5D6B8, #C0997F, #90372B
};
color[] Theme2 = {
#272618, #46533E, #5E6423, #FBFCC6, #364742
};
color[] Theme3 = {
#223740, #537367, #A1A681, #D9B779, #8C6D46
};
color[] Theme4 = {
#C74029, #FAE8CD, #128085, #385052, #F0AD44
};
and make it somehow that if I've added more Color Arrays in Future it puts them in in the random selection too .
1