src/Generator.php
public function getState($state_code = null)
	{
		
		if (!empty($state_code)) {
			$res = Zipcode::where('state_code', $state_code)->orderByRaw(Database::random())->first();
		} else {
			$res = Zipcode::orderByRaw(Database::random())->first();
		}
		
		$State = new Entities\State;
		$State->code = $res->state_code;
		$State->name = $res->state;
		return $State;
	}
public function getState($state_code = null)
	{
		
		if (!empty($state_code)) {
			$res = Zipcode::where('state_code', $state_code)->orderByRaw(Database::random())->first();
		} else {
			$res = Zipcode::orderByRaw(Database::random())->first();
		}
		
		$State = new Entities\State;
		$State->code = $res->state_code;
		$State->name = $res->state;
		return $State;
	}
Return a state

@param null $state_code
@return \joshmoody\Mock\Entities\State