Hello everybody,
I am wondering if it is possible to randomize the firing order, when one
rule is activated by many facts. Indeed a rule is always fired according the
reversed order of assertion. So this example
(reset)
(assert (a 1))
(assert (a 2))
(assert (a 3))
(defrule example
(a ?x)
=>
(printout t "a = " ?x crlf)
)
(run)
will always output :
a = 3
a = 2
a = 1
Thanks in advance,
Nicolas
--------------------------------------------------------------------
To unsubscribe, send the words 'unsubscribe jess-users [EMAIL PROTECTED]'
in the BODY of a message to [EMAIL PROTECTED], NOT to the list
(use your own address!) List problems? Notify [EMAIL PROTECTED]
--------------------------------------------------------------------