public function getFirstName($gender = null)
	{
		if (empty($gender)) {
			$gender = $this->getGender();
		}

		return FirstName::where('gender', $gender)->where('rank', '<=', 250)->orderByRaw(Database::random())->first()->name;
	}
public function getFirstName($gender = null)
	{
		if (empty($gender)) {
			$gender = $this->getGender();
		}

		return FirstName::where('gender', $gender)->where('rank', '<=', 250)->orderByRaw(Database::random())->first()->name;
	}
public function getFirstName ( $ gender = null ) { if ( empty ( $ gender ) ) { $ gender = $ this -> getGender ( ) ; } return FirstName :: where ( 'gender' , $ gender ) -> where ( 'rank' , '<=' , 250 ) -> orderByRaw ( Database :: random ( ) ) -> first ( ) -> name ; }
Generate a First Name

Uses US Census data to get 250 most popular names for both male and female

@param string $gender Do you want a male or female name? (M/F).	If null, selects a gender at random.
Generate a First Name