rand in codeigniter
Sure! Here's the way to use the rand
function in CodeIgniter:
- Load the helper in your controller:
$this->load->helper('url');
- Use the
rand
function to generate a random number within a specific range:
$random_number = rand($min, $max);