public function getRandomPassword()
	{
		//Random rand = new Random();
		//int type, number;
		$password = "";
		for($i=0; $i<7; $i++)
		{
			$type = rand(0,21) % 3;
			$number = rand(0,25);
			if ($type == 1)
			{
				$password = $password . chr(48 + ($number%10));
			}
			else
			{
				if ($type == 2)
				{
					$password = $password  . chr(65 + $number);

				}
				else
				{
					$password  = $password . chr(97 + $number);

				}
			}
		}
		return $password;
	}
public function getRandomPassword()
	{
		//Random rand = new Random();
		//int type, number;
		$password = "";
		for($i=0; $i<7; $i++)
		{
			$type = rand(0,21) % 3;
			$number = rand(0,25);
			if ($type == 1)
			{
				$password = $password . chr(48 + ($number%10));
			}
			else
			{
				if ($type == 2)
				{
					$password = $password  . chr(65 + $number);

				}
				else
				{
					$password  = $password . chr(97 + $number);

				}
			}
		}
		return $password;
	}
public function getRandomPassword ( ) { //Random rand = new Random(); //int type, number; $ password = "" ; for ( $ i = 0 ; $ i < 7 ; $ i ++ ) { $ type = rand ( 0 , 21 ) % 3 ; $ number = rand ( 0 , 25 ) ; if ( $ type == 1 ) { $ password = $ password . chr ( 48 + ( $ number % 10 ) ) ; } else { if ( $ type == 2 ) { $ password = $ password . chr ( 65 + $ number ) ; } else { $ password = $ password . chr ( 97 + $ number ) ; } } } return $ password ; }
Make a random password

@return string
Make a random password