We have presented WM21-D3(BJ) -a new range-separated hybrid functional with oppositespin UW12 correlation and D3(BJ) dispersion which we have optimized using the survival of the fittest strategy on the main-group chemistry database (MGCDB84). We have compared this functional to other range-separated hybrid functionals, including the ωB97X-V functional optimized using the same approach, and shown that for the test set data not used in the optimization procedure WM21-D3(BJ) results in lower errors for the majority of datasets considered without the VV10 non-local functional. The functional also offered significant improvement over the B-LYP-osUW12-D3(BJ) functional for a number of datasets.