Download the PHP package xdev/randomize without Composer
On this page you can find all versions of the php package xdev/randomize. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download xdev/randomize
More information about xdev/randomize
Files in xdev/randomize
Download xdev/randomize
More information about xdev/randomize
Files in xdev/randomize
Vendor xdev
Package randomize
Short Description Support random number, string, array, list
License MIT
Package randomize
Short Description Support random number, string, array, list
License MIT
Please rate this library. Is it a good library?
Informations about the package randomize
Randomize package
This package will random number, string and element in the specific array.
Requirements
PHP >= 7.3
Composer > 1.0
How to use
run by composer
composer require xdev/randomize
Add package to your code
use Xdev\Support\Randomize\Random
call class Random and use static method
Methods
randomNumber ($min,$max):int
| param | type |
| min | integer |
| max | integer |
It will random number from min to max that using rand function from php default.
randomString ($length):string
| param | type |
| length | integer |
It will random string using using random_bytes and bin2hex function from php default.
randomElementInArray ($neededArray):mixed
| param | type |
| neededArray | array |
It will random element in needed array.
License
MIT
Author
Kiden Snapter, Duy Lucas
All versions of randomize with dependencies
PHP Build Version
Package Version
The package xdev/randomize contains the following files
Loading the files please wait ...