1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
<?php // Create an array of numbers from 1 to 49 $numbers = range(1, 49); // Shuffle the array to randomize the order of the numbers shuffle($numbers); // Pick the first 6 numbers from the shuffled array $pickedNumbers = array_slice($numbers, 0, 6); // Print the picked numbers echo "Picked numbers: " . implode(", ", $pickedNumbers) . "\n"; ?> |
