Created
October 21, 2019 16:10
-
-
Save kephas/335587c726853c599565d7363b3d697a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function creer_doublon($max) { | |
$start = 1; | |
$nombres = range(1, $max); | |
array_push($nombres, rand(1, $max)); | |
shuffle($nombres); | |
return $nombres; | |
} | |
print_r(creer_doublon(10)); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment