300+ free video programming tutorials ― Learn for free!

PHP Tutorial - #43 - Generating Random Numbers

Category: PHP - Author: Karl Hadwen

Home > PHP > PHP Tutorial - #43 - Generating Random Numbers

Did you find this video helpful? If so, why not subscribe!? ? http://bit.ly/CognitiveSurge

Generating random numbers is extremely simple. We can use rand() or mt_rand(), personally I prefer mt_rand(). We can just call either rand() or mt_rand(), but if we want to pass in a min and max we can just use rand(1,10), or mt_rand(5,15).

Like the Cognitive Surge Facebook page

Follow me on Twitter (Feel free to tweet me questions!)

Join the Cognitive Surge Subreddit

Follow me on Instagram

Follow me on Goodreads