PHP code example of qmegas / php-rand-custom-distribution
1. Go to this page and download the library: Download qmegas/php-rand-custom-distribution 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/ */
qmegas / php-rand-custom-distribution example snippets
$generator = new \Qmegas\RandomGenerator(50, 150, function(float $i) {
return $i * 100;
});
echo $generator->getNumber();