I want to create an apple if the apple is randomly chosen, from a family where all 3 - orange banana and apple are inside the family.
I think you can't..
you cant write... create family member with instance variable "apple"
but if I'm right this is going to do just that...
random_Pick="apple"
if c2 coose apple fom family..stop loop..everithig is ok..
else keep trying(create&destroy) until you find apple..then stop
Of course this does not make sense with "Random_Pick" variable,you dont need two times random pick..
(variable and family (already picking random))..but if you have variable "Specific_Pick"..
and set variable to specific fruit.. Specific_Pick="apple"..then you'll get apple
have you even tried this?
..maybe I'm wrong