The intraday variability in the radio-selected and X-ray-selected BL Lacertae objects