public static function randomChar( $char )
	{
		if ( strlen( $char ) == 0 )
			return '';

		$char = ord( $char );

		if ( $char > 64 && $char < 91 ) // Uppercase
			return static::randomCharRange( 65, 90 );

		if ( $char > 96 && $char < 123 ) // Lowercase
			return static::randomCharRange( 97, 122 );

		if ( $char > 47 && $char < 58 ) // Numeric
			return static::randomCharRange( 48, 57 );

		return static::$randomCharMap[random_int( 0, count( static::$randomCharMap ) )];
	}
public static function randomChar( $char )
	{
		if ( strlen( $char ) == 0 )
			return '';

		$char = ord( $char );

		if ( $char > 64 && $char < 91 ) // Uppercase
			return static::randomCharRange( 65, 90 );

		if ( $char > 96 && $char < 123 ) // Lowercase
			return static::randomCharRange( 97, 122 );

		if ( $char > 47 && $char < 58 ) // Numeric
			return static::randomCharRange( 48, 57 );

		return static::$randomCharMap[random_int( 0, count( static::$randomCharMap ) )];
	}
public static function randomChar ( $ char ) { if ( strlen ( $ char ) == 0 ) return '' ; $ char = ord ( $ char ) ; if ( $ char > 64 && $ char < 91 ) // Uppercase return static :: randomCharRange ( 65 , 90 ) ; if ( $ char > 96 && $ char < 123 ) // Lowercase return static :: randomCharRange ( 97 , 122 ) ; if ( $ char > 47 && $ char < 58 ) // Numeric return static :: randomCharRange ( 48 , 57 ) ; return static :: $ randomCharMap [ random_int ( 0 , count ( static :: $ randomCharMap ) ) ] ; }
Randomizes the first character of string, preserves uppercase, lowercase, and numeric.

@param string $char
@return string
Randomizes the first character of string preserves uppercase lowercase and numeric .