Add to Favorites    Make Home Page 22099 Online  
 Language Categories  
 Our Services  

PHP » Tips and Tutorials » Randomizing » Flip a Coin


Search Projects & Source Codes:

Title Flip a Coin
Platform linux
Price freeware
Author Visit Author Website
Website Visit Website of - Flip a Coin
Category PHP » Tips and Tutorials » Randomizing
Hits 699
Description 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.


Google Groups Subscribe to SourceCodesWorld - Techies Talk

Free eBook - Interview Questions: Get over 1,000 Interview Questions in an eBook for free when you join JobsAssist. Just click on the button below to join JobsAssist and you will immediately receive the Free eBook with thousands of Interview Questions in an ebook when you join.

Scripts Related to - Flip a Coin

Script Name

Random password generator

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.

random image

This beginners example shows how to display a random image on a web page from an entry in a text file.

random password

This shows how to generate random passwords, these could be added to more complex scripts to create a login system.

Random Quotes

Many people email wondering how the heck we make the random quotes on the title bar at the main page of Well, we're finally releasing the secret, and its not as hard as you think :)

Simple Random HTML Emitter

A simple and quick random HTML emitter that you can easily integrate into your web site. There's no need for an overly complex solution here.

Generate a random password

A function that generates a password randomly from a set of characters. The length of the password and the characters to choose from can be altered.

Programmatic random image & hyperlink script

This script uses a MySQL database and PHP to produce random images and associated hyperlinks. Great for producing random 88x31 buttons.

Using PHP to create random numbers

This tutorial explains how to create random numbers in PHP using rand() and mt_rand(). The second part of the tutorial explains how to weight random numbers to favor a given outcome. Very handy for ad rotation, or game design.

PHP Freaks: Randomize Images, Quotes and MySQL Results

Learn how to randomize just about anything you need on your website. Great for Random Quotes, Images and MySQL Results.

Fetching random record

Ever wanted to place the random line of text or random image on the page There are two basic methods for fetching random records from the database. The frist method is to generate a random number when outputting data and the second method is to form a proper MySQL query.

Google Search


Source Codes is a part of Vyom Network.

Vyom Network : Web Hosting | Dedicated Server | Free SMS, GRE, GMAT, MBA | Online Exams | Freshers Jobs | Software Downloads | Interview Questions | Jobs, Discussions | Placement Papers | Free eBooks | Free eBooks | Free Business Info | Interview Questions | Free Tutorials | Arabic, French, German | IAS Preparation | Jokes, Songs, Fun | Free Classifieds | Free Recipes | Free Downloads | Bangalore Info | Tech Solutions | Project Outsourcing, Web Hosting | GATE Preparation | MBA Preparation | SAP Info | Software Testing | Google Logo Maker | Freshers Jobs

Sitemap | Privacy Policy | Terms and Conditions
Copyright ©2003-2019, All Rights Reserved.
Page URL:

Download Yahoo Messenger | Placement Papers | Free SMS | C Interview Questions | C++ Interview Questions | Quick2Host Review