I'd like to create a random number between several intervals in php. So I have several intervals in my database and I would like to randomly generate a number belonging to one of these intervals.
I have already thought of selecting a random interval and then generating a random number within that interval but I think there are much simpler and optimized methods.
Thank you for your help!
Aucun commentaire:
Enregistrer un commentaire