#native_company# #native_desc#
#native_cta#

Generate a 8 chr random string, only using undercase letters

By Rasshmii
on July 7, 2004

Version: 1.1

Type: Function

Category: Algorithms

License: Other

Description: very short function, 6 lines long.

/* $lenstr - is the length of the string you need to generate  */

function gstring($lenstr) {
	mt_srand((double)microtime()*1000000);
	while ($i<$lenstr) {
		$value .= chr(mt_rand(97,122));
		$i++;
	}
return $value;
}