thick discharge

occasionally i get very thick discharge. not all of the time but only every now and then. anyone know why this could be? and if its bad to have thick discharge?