If you really must know, a regular diet consisting of the following would be a good start.
Based upon magnesium content (mg) per serve indicated -
Pumpkin seeds - 1 ounce (152mg)
Peanuts - 1/2 cup (131mg)
Tofu - 1/2 cup (127mg)
Broccoli - 2 stalks (120mg)
Spinach - 1/2 cup (79mg)
Soybeans - 1/2 cup (74mg)
Tomato paste - 1/2 cup (67mg)
Sweet potato - 1/2 cup (61mg)*
Black beans - 1/2 cup (60mg)
Chili beans - 1/2 cup (58mg)
Baked beans - 1/2 cup (55mg)
Lima beans - 1/2 cup (49mg)
Refried beans - 1/2 cup (49mg)
Mung beans - 1/2 cup (48mg)
Artichoke - 1 medium (47mg)
Okra - 1/2 cup (46mg)
Squash - 1/2 cup (43mg)
Lima beans - 1/2 cup (41mg)
Kidney beans -1/2 cup (40mg)
Chickpeas - 1/2 cup (39mg)
Low fat Yoghurt - 1 cup (37mg)
Broadbeans - 1/2 cup (36mg)
Split peas - 1/2 cup (36mg)
Lentils - 1/2 cup (35mg)
Milk - 1 cup (35mg)
If you eat all of these before going out, glad I'm notwith you
*Do not eat skin