How to genenerate 24 random numbers between 1 and 24 in PHP?

For this WordPress site, I need to generate 24 variables each of which contains a number between 1 and 24. The problem is that two variables cannot have the same value. So I basically need to generate 24 variables each of which contains a number between 1 and 24.

Here’s the code that I am using to generate a random number.

Read More
$mirza = rand(1,24);

Thanks for any help.

Related posts

Leave a Reply

2 comments