Renamed random boolean core to match its public method.