Question regarding Cookie Persistence

One of our F5 project, Application team is looking for F5 to insert a Cookie value based on backend Server pool. The server will generate nonce(unique key) and based on this unique key F5 needs to route traffic to Server A or Server B. What is the best approach to this method? Regards

If a cookie is generated by server for nonce(unique key), you can use uie persistence based LB.

K7392: Overview of universal persistence myF5