Random number generatorWe can generate random value by using PHP. We can specify a range and the random value between those two ranges (inclusive) will be generated.
Note that here we are generating a random number only. To get any random characters we can use arrays. The details on how to generate random characters is available here.
Here is the code to generate random numbers.
Random number of different lengthWe can create a script to generate random number of different length. Let us try to develop a script to print random number of 5 character length.
Here it is
Output is here
Read here how to generate random string having alphabets and digits