Answer the question
In order to leave comments, you need to log in
Is there a ready-made bike for random sampling from a table of users?
Options all fall ten years ago. Maybe there is already something regular?
Answer the question
In order to leave comments, you need to log in
$users = \Bitrix\Main\UserTable::getList([
"order" => [
"RAND" => "asc"
],
'runtime' => array(
new \Bitrix\Main\Entity\ExpressionField('RAND', 'RAND()')
),
"limit" => 10
])->fetchAll();
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question