OAuth2 implementation

Hi all, how to create client id and client secret for an REST API server. I don’t know which algorithm or function should I use to generate the client id and client secret. I need your help. thank you.