I couldn't find any related question on StackOverflow, and I'm not sure that this is feasible in Prolog, but here's my problem:
Given a set of constraints where I can expect an enormous number of solutions from Prolog that may take hours to come up, can I opt not to wait for the full set of solutions, but instead get the "first" but randomized solutions?
For an extremely small example,
between(0, 100, X), between(0, 100, Y), X+Y>100.
will promptly give me a predictable set of X=1, Y=100; X=2, Y=100, X=3, Y=100
etc. Suppose the example instead takes hours to compute, is there a way to get - say 35 (a user parameter) - solutions that are randomly ordered, like X=79, Y=43; X=4, Y=98
, etc?
It's been a while since I last did Prolog, so I'm back to being a beginner!