@UniverseStar;,
@yvolkan;,
@BTHN; &
@PamukBilisim; şu şekilde daha iyi değil mi?
<?php
header("Content-Type: text/plain; charset=UTF-8");
function random($min = 0, $max = 1)
{
return $min + mt_rand() / mt_getrandmax() * ($max - $min);
}
$begin_time = microtime(true);
$random = random(1234.5678, 987654321.23456);
$end_time = microtime(true);
$elapsed_time = $end_time - $begin_time;
echo "Generated value : {$random}\n\n";
echo "Elapsed time : {$elapsed_time}";