I have the following code that is supposed to rotate on a page refresh but it doesn't seem to work. I need the code to EVENLY cycle through the array values with each refresh or page call.
<?php
$variable[1] = 'user1';
$variable[2] = 'user2';
$varCount = count($variable);
$randomNumber = mt_rand(1, $varCount);
?>