RandomFunctionRector

Changes rand, srand, and getrandmax to newer alternatives

-rand();
+random_int();

Configure your rector.php:

<?php

use Rector\Config\RectorConfig;
use Rector\Php70\Rector\FuncCall\RandomFunctionRector;

return RectorConfig::configure()
    ->withRules([
        RandomFunctionRector::class,
    ]);
SETS:  PHP 7.0