Answer:
It depends on the type of combination lock ! Usually, once you've dialled the current code, and opened the lock, there is a pin, or lever that you can move, which releases the tumblers. You simply move the tumblers to a new number - and re-set the locking pin. This sets the new number.