The actual code which is used to generate pagination is Joomla core code, so I am afraid of you could not change it. What you want to change? Maybe you can send us the link to the page you are working on and tell us what you want to change so that we can look at it and guide you?