1 | <?php |
||
5 | class Num |
||
6 | { |
||
7 | |||
8 | /** |
||
9 | * @param int $min |
||
10 | * @param int $max |
||
11 | * |
||
12 | * @return int |
||
13 | * @throws \Exception |
||
14 | */ |
||
15 | 1 | public static function randomInt($min = PHP_INT_MIN, $max = PHP_INT_MAX) |
|
19 | |||
20 | /** |
||
21 | * @param int|float|double $number |
||
22 | * @param int $decimals |
||
23 | * @param string $decPoint |
||
24 | * @param string $thousandsSep |
||
25 | * |
||
26 | * @return string |
||
27 | */ |
||
28 | 1 | public static function format($number, $decimals = 0, $decPoint = '.', $thousandsSep = ',') |
|
32 | |||
33 | } |
||
34 |