16 if (isset($DIC[
'ilLoggerFactory'])) {
17 $c($DIC->logger()->rnd());
21 public function int(
int $min = 0,
int $max = PHP_INT_MAX):
int 24 return random_int($min, $max);
28 $logger->
error(
'No suitable random number generator found.');
logStack(?int $level=null, string $message='', array $context=[])
logIfPossible(callable $c)
int(int $min=0, int $max=PHP_INT_MAX)
Wrapper for generation of random numbers, strings, bytes.
error(string $message, array $context=[])