<div dir="ltr">Second thoughts: it might be easier to add code to the right hand side to achieve this random firing.<br></div><div class="gmail_extra"><br><br><div class="gmail_quote">On 3 April 2014 09:04, Wolfgang Laun <span dir="ltr">&lt;<a href="mailto:wolfgang.laun@gmail.com" target="_blank">wolfgang.laun@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">You can insert a fact containing the random number and add a pattern with the constraint. Where is the problem?<br>
</div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><br><div class="gmail_quote">On 2 April 2014 23:45, vvicky72 <span dir="ltr">&lt;<a href="mailto:vvicky72@hotmail.com" target="_blank">vvicky72@hotmail.com</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">We have a unique situation. Using guided decision tables, we want a<br>
particular rule to fire randomly even when all the conditions on the &quot;when&quot;<br>
clause are satisfied.<br>
<br>
So...<br>
We want to assign a positive integer to every rule (say n). We want that<br>
rule to fire only when<br>
&quot;new Random().nextInt(n)+1 = n&quot; is true (along with other conditions in the<br>
rule)<br>
<br>
Any suggestions?<br>
<br>
Thanks,<br>
Vikas.<br>
<br>
<br>
<br>
--<br>
View this message in context: <a href="http://drools.46999.n3.nabble.com/Random-rule-fire-tp4029103.html" target="_blank">http://drools.46999.n3.nabble.com/Random-rule-fire-tp4029103.html</a><br>
Sent from the Drools: User forum mailing list archive at Nabble.com.<br>
_______________________________________________<br>
rules-users mailing list<br>
<a href="mailto:rules-users@lists.jboss.org" target="_blank">rules-users@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
</blockquote></div><br></div>
</div></div></blockquote></div><br></div>