<?php // how to generate random number in php //The rand() function generates a random integer. echo rand(111111,999999); ?>