PURPOSE: This randomized phase III trial is studying surgery or radiosurgery alone to see how well it works compared to surgery or radiosurgery and whole-brain radiation therapy in treating brain metastases in patients with solid tumors.