PHP code example of nepster-web / gambling-tech

1. Go to this page and download the library: Download nepster-web/gambling-tech library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

nepster-web / gambling-tech example snippets


use Gambling\Tech\Random;

Random::getBytes(16); // 3ö1\x18&U\x0Fµòð$ä&ã\x05\x06
Random::getInteger(0, 100); // 7
Random::getBoolean(); // false
Random::getFloat(); // 0.57746288525196
Random::getString(16); // 3Q989ujqa3CAZl0c

use Gambling\Tech\FisherYatesShuffle;

$cards = [0, 1, 2, 3, 4, 5, 6, 7];

$shuffled = (new FisherYatesShuffle())($cards);

$shuffled; // [7, 2, 1, 5, 4, 6, 0, 3]