PHP code example of axy / random

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

    

axy / random example snippets


use axy\random\src\Random;

$string = Random::createString(10); // creates a random string of 10 chars
$bytes = Random::createBytes(100); // creates an array of 100 integers (0-255)