1. Go to this page and download the library: Download alirezasalehizadeh/random 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/ */
alirezasalehizadeh / random example snippets
use Alirezasalehizadeh\Random;
Random::int($min = null, $max = null)
use Random\IntervalBoundary;
use Alirezasalehizadeh\Random;
Random::float($min = null, $max = null, $boundary = IntervalBoundary::ClosedOpen)
use Alirezasalehizadeh\Random;
Random::byte($length)
use Alirezasalehizadeh\Random;
Random::string($bytes, $length = null)
use Alirezasalehizadeh\Random;
Random::array($array)
use Alirezasalehizadeh\Random;
Random::pick($array, $num = 1)
use Random\Engine\Mt19937;
use Alirezasalehizadeh\Random;
(new Random(new Mt19937))->generate()
use Alirezasalehizadeh\Random;
use Random\Engine\PcgOneseq128XslRr64;
(new Random(new PcgOneseq128XslRr64))->generate()
use Alirezasalehizadeh\Random;
use Random\Engine\Xoshiro256StarStar;
(new Random(new Xoshiro256StarStar))->generate()
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.