PHP code example of axolotl-pm / xoroshiro128pp

1. Go to this page and download the library: Download axolotl-pm/xoroshiro128pp 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/ */

    

axolotl-pm / xoroshiro128pp example snippets


use pocketmine\xoroshiro128pp\Xoroshiro128PP;

$random = Xoroshiro128PP::fromSeed($seed);
$random->nextLong();   // signed 64-bit
$random->nextFloat();  // [0, 1)