FullMoon123
Programmer
Hi everybody. I am feeling a bit puzzled. Part of my program involves asserting a bunch of things into the database. For example: assert(p(X)), or assert(p1(a)).
I noticed that every time I run my program without modifying the code, it gives different answers (for the same input). Are the assertions for some reason get done out of order? I tried using asserta and assertz. Does not make the randomness go away. How can I make it go away? Is there a way to enforce the order of assertions?
I noticed that every time I run my program without modifying the code, it gives different answers (for the same input). Are the assertions for some reason get done out of order? I tried using asserta and assertz. Does not make the randomness go away. How can I make it go away? Is there a way to enforce the order of assertions?