PHP code example of muath-ye / unique-random-number

1. Go to this page and download the library: Download muath-ye/unique-random-number 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/ */

    

muath-ye / unique-random-number example snippets



'aliases' => [
    // ...,
    'Random' => \Muathye\UniqueRandomNumber\Random::class
]


// You don't need to declare this use statement if you registered the Random class in config/app.php

use Muathye\UniqueRandomNumber\Random;

Random::generate(2, 3, 6);
// Out Put => 628

Random::generate(1, 4, 6);
// Out Put => 8314

Random::generate(1624, 4, 6);
// Out Put => 16248

Random::generate(54627, 4, 6);
// Out Put => 546276

Random::generate(54627, 4, 6);
// Out Put => 546276