What I want to do is randomly select members of a structure. I would create a an instance of the structure then it would got through a 'path' of it's members and arrive at the very last member. I am going to use this as a random item generator. so it will create something like this:
item new_item;
Then it would randomly select which members it has.
new_item.item_class.part1.part2.end
Keeping in mind that the parts of the item will be randomly selected. I have no idea how to implement this and I have searched everywhere for a starting point.