Codeless
Active member
Hi how to generate random number in a specific range in php for example
generating random number while keeping in range of 200 to 500
i want to write in xenfor syntax
PHP:
$randomNumber = rand(200, 500);
PHP:
$min = 1.5;
$max = 3.5;
$randomNumber = $min + mt_rand() / mt_getrandmax() * ($max - $min);
i want to write in xenfor syntax