title: Get random number from array every 24 hours
body: <p>I would like to know if it would be possible to retrieve a value from an array and use that value for the entire day without changing the value on refresh, it will be used for a discount section. So everyday one of the random values will be taken and that value will be applied as discount % for the next 24 hours. Tomorrow (24 hours later) it will take another value and use that value for the next 24 hours.    </p>
  
  <p>I created a logical statement below but isn't working. Any help will be gladly appreciated to complete below function.</p>
  
  <pre><code>      //TIME VALUES
        date_default_timezone_set('Asia/Dubai');
        $currentTime = date('H:i');
        $dayStartTime = '00:01';
        $dayEndTime = '23:59';
  
        if($currentTime &gt;= $dayStartTime &amp;&amp; $currentTime &lt;= $dayEndTime) {
          $items = Array("10","15","20");
          echo $items[array_rand($items)];
        }
  </code></pre>
  
  <p>Thank you for you time.<br>
  Dane</p>