PHP code example of bang / random
1. Go to this page and download the library: Download bang/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/ */
bang / random example snippets
composer
php
Random::alnum(6);//生成数字和字母
Random::alpha(6);//仅生成字符
Random::numeric(6);//生成指定长度的随机数字
Random::nozero(6);//数字和字母组合的随机字符串
Random::chinese(6);//6个汉字
Random::uuid(6);//获取全球唯一标识