Certified random number generator (RNG) by GamblingTec using Laminas Math Rand
Open Issues: 0
- php: ^7.0
- laminas/laminas-math: 3.4.0
- friendsofphp/php-cs-fixer: ^1.11.4
This is a simple wrapper using Laminas/Laminas/Rand which has been certified by Sunseven NV for use with a UK, Malta and Curacao Gambling License.
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)
For a demonstration of the GamblingTec RNG, please see: https://github.com/sunsevennv/gamblingtec-rng which is a command line utility using the wrapper.
You can read about it here: https://docs.laminas.dev/laminas-math/rand/
- PHP 7.0 +
Use composer to install.
composer require gamblingtec/certified-rng
or just composer install with the following line in your json file
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:
And then call any of the static methods:
- $result = GamblingTecRNG::getInteger(0, $i);
- $result = GamblingTecRNG::boolean()
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 & RNG Certification
Should your organisation require an RNG certificate fir 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: https://gtec.curacaowebhosting.com/cart.php?gid=9
- email: brendan [at] gamblingTec.com
- WhatsApp: +44 (0)7498 105896
- Skype/Telegram: brendanjnash