PHP Code
// Purpose
//	This is a general purpose function used to generate a random digit sequence (RDS).
//	The sequence is a string of digits between 0 and 9 that contains a specified number of digits.
// Parameters
//	SequenceLength (Number) = This is the number of digits that the sequence will contain.
//		If this value is <= 0, function returns a zero-length string.
// Return (String)
//	Returns a sequence of random digits between 0 and 9 containing the specified number of digits.
// Version History
//	1.0 4/26/2004 Tested by Russ Tanner
//---
function GetRandomDigitSequence_Length($SequenceLength) {

	// Initiate variable
	$R = ''; // Return buffer

	// Main loop
	for ($C = 0; $C < $SequenceLength; $C++) {
		$R .= mt_rand(0,9); // Append a new random digit to the end of the sequence
	}

	// Return the result
	return $R;

} 


The Captian
Today they call you "crazy". Tomorrow they call you "ahead of your time."
Global Skywatch Learn about Chemtrails - You're breathing them now!
OnlyTheBestHerbs.com World-class supplements
Mercury Talk Why you are sick.
OneUp Domains Domains, Hosting, Email
1-800-358-4278 (U.S. & Canada)