For each of your Pokémon that has a Mega Rayquaza Cap attached, search your deck for a Basic Energy card and attach it to that Pokémon. Then, shuffle your deck.
Type
Attributes
Expansion
Number
Rarity
Release
Regulation
Formats
Energy Types
Species
HP
Retreat
Weakness
Resistance
Stage
Evolves From
Artist
For each of your Pokémon that has a Mega Rayquaza Cap attached, search your deck for a Basic Energy card and attach it to that Pokémon. Then, shuffle your deck.