Retry_on_conflict, random wait?

Hi,

If two processes try updating the same document concurrently, and they both have retry_on_conflict set to the same number (ex: 5), is there a built-in random wait, or do they just keep racing until the number of retries has run out?

Lasse