This randomized, placebo-controlled phase III trial is evaluating the benefit of rucaparib and enzalutamide combination therapy versus enzalutamide alone for the treatment of men with prostate cancer that has spread to other places in the body (metastatic) and has become resistant to testosterone-deprivation therapy (castration-resistant). Enzalutamide helps fight prostate cancer by blocking the use of testosterone by the tumor cells for growth. Poly adenosine diphosphate (ADP)-ribose polymerase (PARP) inhibitors, such as rucaparib, fight prostate cancer by prevent tumor cells from repairing their DNA. Giving enzalutamide and rucaparib may make patients live longer or prevent their cancer from growing or spreading for a longer time, or both. It may also help doctors learn if a mutation in any of the homologous recombination DNA repair genes is helpful to decide which treatment is best for the patient.