Supported Versions: PHP 4, PHP 5, PHP 7, PHP 8
Generate a random integer
<?php rand(): int
<?php         $systemTempDir = Path::normalize(realpath(sys_get_temp_dir()));

        $basePath = $systemTempDir.'/'.$namespace.'/'.$shortClass;



        while (false === @mkdir($tempDir = $basePath.rand(10000, 99999), 0777, true)) {


        }