PHPackages                             gamblingtec/certified-rng - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. gamblingtec/certified-rng

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

gamblingtec/certified-rng
=========================

Certified random number generator (RNG) by GamblingTec using Laminas Math Rand

2.0.0(5mo ago)21883BSD-3-ClausePHPPHP ^8.1

Since Apr 2Pushed 5mo ago1 watchersCompare

[ Source](https://github.com/s7-enterprise/certified-rng)[ Packagist](https://packagist.org/packages/gamblingtec/certified-rng)[ Docs](https://www.crgcgames.com)[ RSS](/packages/gamblingtec-certified-rng/feed)WikiDiscussions develop Synced 2w ago

READMEChangelogDependencies (2)Versions (12)Used By (0)

Casino Games RNG
================

[](#casino-games-rng)

About
-----

[](#about)

This is a simple wrapper using Laminas/Laminas/Rand which has been certified for use under most Gambling Licenses.

The wrapper is freely available for use by the gambling community for their games. By using this wrapper, we can assist you with RNG certification which is a pre-requisite of a gambling license.

When certifying software, we must submit test utilities to the test lab which they then use to generate large quantities of data. The lab then tests the data for randomness by running multiple tests against the data. This is a time consuming process often taking multiple hours to complete each test. For this reason, obtaining RNG certification can take a number of weeks to obtain.

The advantages of using this wrapper is that we have already written the test utilities needed by the lab who have our data on file. For this reason, we can obtain certification much quicker if you use our library.

### Test Utility (command line)

[](#test-utility-command-line)

For a demonstration of our RNG, please see:  which is a command line utility using the wrapper.

### About Laminas/Math/Rand

[](#about-laminasmathrand)

You can read about it here:

### Prerequisites

[](#prerequisites)

- PHP 7.0 +

### Installation

[](#installation)

Use composer to install.

> composer require gamblingtec/certified-rng

or just composer install with the following line in your json file

> "gamblingtec/certified-rng": "^1.0"

How to use the utility
----------------------

[](#how-to-use-the-utility)

Once the library has been installed you will have available to you four static commands which you can use to generate random numbers. To use them include the GamblingTecRNG class:

use Gamblingtec\\RNG\\Utility\\GamblingTecRNG;

And then call any of the static methods:

- $result = GamblingTecRNG::getInteger(0, $i);
- $result = GamblingTecRNG::boolean()

Third party wrappers using this class
-------------------------------------

[](#third-party-wrappers-using-this-class)

If you have written a class using our certified rng then let us know and we will add a link to it.

-

Gambling License &amp; RNG Certification
----------------------------------------

[](#gambling-license--rng-certification)

Should your organisation require an RNG certificate for your games in order to obtain a gambling license, we can provide you with a certificate for the class.

You can place your order here:

- email: brendan \[at\] gamblingTec.com
- WhatsApp: +44 (0)7498 105896
- Skype/Telegram: brendanjnash

###  Health Score

47

—

FairBetter than 93% of packages

Maintenance70

Regular maintenance activity

Popularity17

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity76

Established project with proven stability

 Bus Factor1

Top contributor holds 98.1% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~275 days

Recently: every ~468 days

Total

10

Last Release

167d ago

Major Versions

1.1.3 → 2.0.02026-01-14

PHP version history (2 changes)1.0.0PHP ^7.0

2.0.0PHP ^8.1

### Community

Maintainers

![](https://www.gravatar.com/avatar/360327405fadc649defd24ca2dd10cc1b7c8675be473707c84cdd0b0794306de?d=identicon)[sunsevennv](/maintainers/sunsevennv)

---

Top Contributors

[![chateaux](https://avatars.githubusercontent.com/u/5870036?v=4)](https://github.com/chateaux "chateaux (53 commits)")[![MichaelGooden](https://avatars.githubusercontent.com/u/1275012?v=4)](https://github.com/MichaelGooden "MichaelGooden (1 commits)")

---

Tags

RNGrandom number generatorgamblingtecgambling rng

###  Code Quality

Code StylePHP CS Fixer

### Embed Badge

![Health badge](/badges/gamblingtec-certified-rng/health.svg)

```
[![Health](https://phpackages.com/badges/gamblingtec-certified-rng/health.svg)](https://phpackages.com/packages/gamblingtec-certified-rng)
```

###  Alternatives

[savvot/random

Deterministic pseudo-random generators library with dozens of useful functions and several sources of randomness

20260.7k5](/packages/savvot-random)[nepster-web/gambling-tech

Gambling Algorithms for Certification.

122.0k](/packages/nepster-web-gambling-tech)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
