protected function randomId($sModel, $sProvider, $aData = [])
    {
        $oModel   = Factory::model($sModel, $sProvider);
        $aResults = $oModel->getAll(0, 1, $aData + ['sort' => [['id', 'random']]]);
        $oRow     = reset($aResults);

        return $oRow ? $oRow->id : null;
    }