You cannot set it no. It is indeed random, it's the start of the UUID we generate for the deploy
You can grab it from stdout if you want to use it somewhere or use the branch alias (in your case deploy-preview-test.<PROJECT>.pages.devdeploy-preview-test.<PROJECT>.pages.dev