Ok I'll try to explain this situation. I know how to pick random values for a sprite and or animation frame but How would you pick a random variable if lets say you wanted to limit or filter the values to an option - lets say their is a menu and its options are colors. I'm picking 4 random colors but when RED is selected at least one of the 4 items is RED.
I have my sets of frames all ordered the same so lets say RED is 1-10 orange is 11-20 yellow is 21-30 etc.
Any Ideas?