While not a script, you can get much more targeted results through the Stack Exchange Data Explorer.
There are weekly refreshes, so if you're looking for anything less than a week old, it won't show up in the query.
Basically, you want to use the newid()
function in SQL to order by. A new GUID is produced for every single row (this expression is not evaluated one time and then cached).
That means that you can get a completely random set of questions every time.
Add the [Post Link]
and then you get a list of URLs that you can use to navigate to the post.
I've created the following query to be forked:
select
p.Id as [Post Link],
p.*
from
Posts as p with (nolock)
where
--- Just questions for now
p.PostTypeId in (1)
--- Add new filter criteria here
--- to suit your needs.
order by
--- Randomize each time.
newid()
Note the --- Add new filter criteria here to suit your needs.
comment. You should adjust the filter in order to target the posts that you specifically want. For example, you might check the ClosedDate
column is null to filter out closed posts.
Also note that you can change this query to work on any site by selecting "Switch sites" on by the "Run Query" button:
