r/PHPhelp • u/Steam_engines • Feb 20 '25
Calling php from click of button
Currently the page generates a random number when loaded, but I would like to have a button on a page that when clicked generates the random number.
A bonus would be if when clicked it checks for the last number generated and doesn't give the same number
0
Upvotes
View all comments
Show parent comment
1
u/sheriffderek Feb 21 '25
You can use a yates shuffle.