South African rand gains ahead of September inflation data