1// Since PHP7.1 rand() has become an alias of mt_rand()
2// mt_rand() was supposed to be faster and more random than rand() in older PHP Versions
3// That means you can use rand() instead of mt_rand() on newer Versions
4<?php
5 rand(1, 100); // will generate a random number between 1 and 100
6?>