Are there any best practices to keep in mind when implementing a system to load random HTML start pages using PHP?

When implementing a system to load random HTML start pages using PHP, it's important to ensure that the pages are randomly selected each time a user accesses the site. One way to achieve this is by storing the URLs of the start pages in an array and using the array_rand function to select a random URL each time the page is loaded.

<?php
// Array of start page URLs
$startPages = array(
    'page1.html',
    'page2.html',
    'page3.html'
);

// Select a random start page
$randomPage = $startPages[array_rand($startPages)];

// Redirect to the random start page
header("Location: $randomPage");
exit;
?>