Rand gains on positive emerging-market sentiment