|
|
PHP » Tips and Tutorials » Randomizing » Flip a Coin
A D V E R T I S E M E N T
Today's Special: Get free Magazine from SAP!
| 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 |
228 |
| 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. |
|
A D V E R T I S E M E N T
|
Subscribe to SourceCodesWorld - Techies Talk |
Scripts Related to - Flip a Coin
| Script Name |
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.
|
This beginners example shows how to display a random image on a web page from an entry in a text file.
|
This shows how to generate random passwords, these could be added to more complex scripts to create a login system.
|
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 :)
|
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.
|
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.
|
This script uses a MySQL database and PHP to produce random images and associated hyperlinks. Great for producing random 88x31 buttons.
|
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.
|
Learn how to randomize just about anything you need on your website. Great for Random Quotes, Images and MySQL Results.
|
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 World.com is a part of Vyom Network.
Vyom Network :
Free SMS, GRE, GMAT, MBA |
Online Exams |
Freshers Jobs |
Software Downloads |
Interview Questions |
Delhi Info |
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
Copyright ©2003-2006 Vyom Technosoft Pvt. Ltd., All Rights Reserved.
Page URL: http://www.sourcecodesworld.com/scripts/Flip-a-Coin-20015/default.asp
Download Yahoo Messenger | Placement Papers | Free SMS | C Interview Questions | C++ Interview Questions
| |