I have a 2d array that I want the program to search from.
HabitatGroups = [["amethyst","silver","crystal","copper","red"],#mountain/hill
["black","gold","green"],#swamp/forest
["amethyst","blue","bronze","gold","topaz"],#water adjacent
["blue","brass","copper"],#warm dry
["white","crystal","silver"],#cold
["sapphire","emerald","crystal","amethyst","blue"]]#underground
x=input("Choose a type of dragon")
Basically, I want the program to take x and use it to randomly select from all the lists that x is in. Say x is "silver", the program would search the mountain/hill and cold sections of the array, and randomly select a different option. How would I go about doing that?