random_int() Random integer generator
min ,max : Minimum and maximum value ( both inclusive ) of random integer to be generated ( both to be given )
Available in PHP 7We can generate random value by using rand() PHP. We can specify a range and the random value between those two ranges (inclusive) will be generated.
Can be used for cryptographic random integers for shuffling a deck of cards or poker games.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. Read here how to generate random string having alphabets and digits
Subscribe to our YouTube Channel here
This article is written by plus2net.com team. https://www.plus2net.com