microtime return float

This commit is contained in:
Fred Tempez 2022-10-17 17:01:55 +02:00
parent bfd48adcf9
commit 43ac79ddd4

View File

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