We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ea78b6c commit 3c13b4fCopy full SHA for 3c13b4f
plugin/exercisefocused/src/Traits/ReportingFilterTrait.php
@@ -378,8 +378,9 @@ private function pickRandomAttempts(array $attemptIdList): array
378
}
379
380
$percentage = count($attemptIdList) * ($settingPercentage / 100);
381
+ $round = round($percentage) ?: 1;
382
- $random = (array) array_rand($attemptIdList, ceil($percentage));
383
+ $random = (array) array_rand($attemptIdList, $round);
384
385
$selection = [];
386
0 commit comments