Easily make a quick random choice between two options. This php script works by seeing if the current server time seconds is even or odd. The code snippet also extends the basic principle to let you flip a 3-sided coin (for choosing among 3 options). Use this for deciding banners, style sheets or any random choice between a very limited number of options.
There are many password generators out there ranging from the very simple, to the downright insane. This tutorial will walk you through why each line of code exists, and how these simple techniques can be adapted into other functions you may write.
Many people email wondering how the heck we make the random quotes on the title bar at the main page of Spoono.com. Well, we're finally releasing the secret, and its not as hard as you think :)