Here are some other ways to say the same thing, with varying levels of formality:
* Go to the toilet
* Use the bathroom
* Pee
* Have a wee (British English)
It's important to use the appropriate language depending on the situation and the people you are talking to. "Take a piss" is generally only acceptable among close friends or in very casual settings.