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
https://www.facebook.com/cognitivesurge

Follow me on Twitter (Feel free to tweet me questions!)
https://twitter.com/karlhadwen

Join the Cognitive Surge Subreddit
https://www.reddit.com/r/CognitiveSurge

Follow me on Instagram
https://instagram.com/karlhadwen

Follow me on Goodreads
https://goodreads.com/karlhadwen