Skip to main content
edited tags
Link
Kevin Montrose
  • 18.7k
  • 6
  • 35
  • 62
Source Link
Soviut
  • 3.3k
  • 3
  • 20
  • 14

Please provide a mechanism for retrieving random questions

A lot of ideas I've had for Stack apps have been of the "question of the day" variety. It would be nice if there was a way to retrieve one or more random questions.

/questions/random/

The max parameter could be used to determine how many results to return. If no max is specified then only a single result should be returned. All other parameters could apply to this, including answers, body and sort.

/questions/random/?max=10&body=true

I realize that I could simply have my app guess a random question ID or something, but most of these solutions will waste precious requests trying to find a positive result and will still only return one result at a time.