Based on the great random movie lists here on Letterboxd.
Generate a number (from 1 to x) via:
See how many number of films there are in the sidebar
You can skip movies 10 times but never go back. Watched movies doesn't count.
If you end up with a movie that's part of a series you can pick another movie in that series. Also, you can pick a previous film from the same director.