Random Extension Polyfill#

Packagist GitLab GitHub Bitbucket Gitea

This is a polyfill for the new ext-random extension that was released with PHP 8.2.

Requirements#

  • PHP 7.1

  • GMP extension is strongly recommended on PHP 7 and somewhat recommended on PHP 8

Installation#

composer require 'arokettu/random-polyfill'

Random Extension Documentation#

On the PHP website: https://www.php.net/manual/en/book.random.php

Documentation#

License#

The library is available as open source under the terms of the 3-Clause BSD License. See License for additional licenses.