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;
}