microtime return float

This commit is contained in:
Fred Tempez 2022-10-17 17:01:55 +02:00
parent bfd48adcf9
commit 43ac79ddd4
1 changed files with 2 additions and 2 deletions

View File

@ -78,9 +78,9 @@ class template
}
// Tirage des nombres
mt_srand((float) microtime() * 1000000);
mt_srand( microtime(true) * 1000000);
$firstNumber = mt_rand(1, $limit);
mt_srand((float) microtime() * 1000000);
mt_srand( microtime(true) * 1000000);
$secondNumber = mt_rand(1, $limit);
// Permutation si addition ou soustraction