@@ -40,10 +40,11 @@ This library features some common functions to reduce overall duplication and av
4040
4141(we can't use ` array `  as class name because reasons)
4242
43- |  method                           |  description                                                                | 
44- | ----------------------------------| ----------------------------------------------------------------------------| 
45- |  ` Arr::first(array $array):mixed `  |  Returns the first element of an array, ` null `  if the given array is empty. | 
46- |  ` Arr::last(array $array):mixed `   |  Returns the last element of an array, ` null `  if the given array is empty.  | 
43+ |  method                            |  description                                                                | 
44+ | -----------------------------------| ----------------------------------------------------------------------------| 
45+ |  ` Arr::first(array $array):mixed `   |  Returns the first element of an array, ` null `  if the given array is empty. | 
46+ |  ` Arr::last(array $array):mixed `    |  Returns the last element of an array, ` null `  if the given array is empty.  | 
47+ |  ` Arr::random(array $array):mixed `  |  Returns a random element of an array, ` null `  if the given array is empty.  | 
4748
4849
4950### ` Crypto `  
@@ -61,14 +62,14 @@ The `Crypto` class defines the following public constants:
6162
6263pre-defined character maps for use with ` Crypto::randomString() `  as  ` $keyspace ` :
6364
64- -  ` NUMERIC ` : numbers 0-9
65- -  ` ASCII_LOWER ` : ASCII a-z
66- -  ` ASCII_UPPER ` : ASCII A-Z
65+ -  ` NUMERIC ` : numbers ` 0-9 ` 
66+ -  ` ASCII_LOWER ` : ASCII ` a-z ` 
67+ -  ` ASCII_UPPER ` : ASCII ` A-Z ` 
6768-  ` ASCII_SYMBOL ` : ASCII printable symbols  `` !"#$%&\'()*+,-./:;<=>?@[\]^_`{|}~ `` 
68- -  ` HEXADECIMAL ` : numbers 0-9 + ASCII a-f
69- -  ` ASCII_ALPHANUM ` : numbers 0-9 + ASCII a-z + A-Z
70- -  ` ASCII_PRINTABLE ` : numbers 0-9 + ASCII a-z + A-Z + printable symbols
71- -  ` ASCII_COMMON_PW ` : ASCII printable minus a few troublemaker  symbols ` !#$%&()*+,-./:;<=>?@[]~_| ` 
69+ -  ` HEXADECIMAL ` : numbers ` 0-9 `  + ASCII ` a-f ` 
70+ -  ` ASCII_ALPHANUM ` : numbers ` 0-9 `  + ASCII ` a-z `  + ` A-Z ` 
71+ -  ` ASCII_PRINTABLE ` : numbers ` 0-9 `  + ASCII ` a-z `  + ` A-Z `  + printable symbols
72+ -  ` ASCII_COMMON_PW ` : ASCII alphanum + most of ASCII printable  symbols ` !#$%&()*+,-./:;<=>?@[]~_| `  (minus a few troublemakers) 
7273
7374output and input ` $format `  for the functions ` Crypto::encrypt() `  and ` Crypto::decrypt() ` , respectively:
7475
0 commit comments