Sometimes I get bored and there are no new questions on PPCG, so I want you to dig a random question from PPCG's past.
Given a user's PPCG ID as input (e.g. my ID is 30525), output the URL of a randomly chosen PPCG question. If the question does not meet the following criteria, you must choose another question until it does meet the criteria:
- The question asker must not be the user whose ID was inputted to the question
- The question must not have already been answered by the user whose ID was inputted to the question
- The question must not be unanswered: it's probably too hard
- The question must not have over 10 answers: it's probably too easy
- The question must be tagged code-golf
URL shorteners are disallowed.
You may use the Stack Exchange API and the Stack Exchange Data Explorer.
You will only ever be given a real PPCG user's ID.
In the unlikely event that there are no suitable questions, you do not have to output anything (undefined behaviour is fine).
Although you won't be awarded extra points, it would be appreciated if someone designed a usable bookmarklet which, when run, opened the browser window to a random PPCG question that follows the above criteria. The user ID should be hardcoded into program (for the bookmarklet only).
The shortest code in bytes wins.