Overview
KB
Technical FAQ
PHP Manual
CSS2 Manual
HTML Manual
JS Guide
JS Reference
PhpDock Manual
Nu-Coder Manual
PhpExpress Manual
PHP Joomla
Development
Learn PHP
 
<Random\RandomErrorRandom\RandomException>
^RandomLast updated: Mon, 26 Oct 2026

The Random\BrokenRandomEngineError class

(PHP 8 >= 8.2.0)

Introduction

Indicates that the used Random\Engine is broken, e.g. because it is severely biased.

Class synopsis

namespace Random;
class BrokenRandomEngineError extends Random\RandomError {
/* Inherited properties */
protected string $message = "";
private string $string = "";
protected int $code;
protected string $file = "";
protected int $line;
private array $trace = [];
private ?Throwable $previous = null;
/* Inherited methods */
public function Error::__construct(string $message = "", int $code = 0, ?Throwable $previous = null)
final public function Error::getMessage(): string
final public function Error::getPrevious(): ?Throwable
final public function Error::getCode(): int
final public function Error::getFile(): string
final public function Error::getLine(): int
final public function Error::getTrace(): array
final public function Error::getTraceAsString(): string
public function Error::__toString(): string
private function Error::__clone(): void
}

<Random\RandomErrorRandom\RandomException>
^RandomLast updated: Mon, 26 Oct 2026