This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2018-01-14
Channels
- # beginners (33)
- # cider (17)
- # clara (13)
- # cljs-dev (7)
- # clojars (1)
- # clojure (47)
- # clojure-brasil (1)
- # clojure-dev (4)
- # clojure-italy (3)
- # clojure-russia (4)
- # clojure-uk (1)
- # clojurescript (4)
- # core-async (4)
- # core-logic (6)
- # cursive (7)
- # datomic (1)
- # emacs (35)
- # fulcro (56)
- # hoplon (7)
- # jobs-discuss (89)
- # lumo (6)
- # numerical-computing (1)
- # onyx (86)
- # parinfer (3)
- # reagent (2)
- # rum (2)
- # specter (5)
- # sql (13)
- # unrepl (2)
So, I want to input a number of parameters, and have core.logic
deliver some success scenarios to me. If I want to guarantee randomness among those scenarios, I’m guessing I can’t rely on core.logic
? That is - I have to take all of those success scenarios, and pick randomly among them, post run
.
However, if sufficiently few parameters (they are all optional) are input, I predict that the number of success scenarios will be astronomic..
Is there a smart way to solve this
To be clear; I’m expecting core.logic
to output an astromonomic number of solutions. Ideally, I’d like the final result to be a completely random one of these solution. Since it may be that the entire corpus of solutions cannot fit in memory, ideally, I’d like core.logic
to ensure randomness in its resulting seq of solutions, if possible. Can it? Or do I have to puzzle out some adequate post-`run*` randomization myself?