Backport - It's not possible to have a randomSwitch() with only one possibily
Backport issue in 96086f17ea20e2d70ac11b76a9338901f90d9722  #1042