version: 2.1.3
randomString
Generate random string, you can use this method without any input
Parameters
length | integer | the length of random text | Optional(16) |
characters | string | the words can be used in random text | Optional(aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ) |
Method errors
There is no error
Method examples
$this->randomString();
$this->randomString(['length'=>16]);
$this->randomString(['length'=>16,'characters'=>'abcdefg']);