<div dir="auto">I think the only usage for random number is for loading balance.<br clear="all"><br clear="all"><div><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><b>Brandon Zhi</b><br></div><div>HUIZE LTD</div><div><a href="https://huize.asia/" target="_blank"><span>www.huize.asia</span> </a><span style="color:rgb(0,0,0);font-family:Helvetica,sans-serif;font-size:10.6667px">| </span><a href="https://www.ixp.su/" target="_blank"><span>www.ixp.su</span></a><span style="color:rgb(0,0,0);font-family:Helvetica,sans-serif;font-size:10.6667px"> | Twitter</span></div><div><img src="https://ci3.googleusercontent.com/mail-sig/AIorK4w5mVhfW4gNpNNG4wjzSr6YXLPGstLI3_79RkgqnXaG2nuFEB1nkGeXOqUOO3ma96TcEVR3iaA" width="200" height="43"><br></div><div>This e-mail and any attachments or any reproduction of this e-mail in whatever manner are confidential and for the use of the addressee(s) only. HUIZE LTD can’t take any liability and guarantee of the text of the email message and virus.</div></div></div></div></div><div><br></div><div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Maria Matejka via Bird-users <<a href="mailto:bird-users@network.cz">bird-users@network.cz</a>>于2024年2月11日 周日06:03写道:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><u></u>
<div>
<p><font face="Gentium">Hello!</font></p>
<p><font face="Gentium">No, it's not possible and it makes the
filters non-deterministic which would break a critical invariant
in BIRD's internal algorithms.</font></p>
<p><font face="Gentium">If you better clarify what you are trying to
achieve, we may find another way for you to do it, or at least
convert it to a viable feature request.</font></p>
<p><font face="Gentium">Thank you for your understanding<br>
Maria<br>
</font></p></div><div>
<div>On 2024-02-10 20:56, Max Tulyev wrote:<br>
</div>
<blockquote type="cite">
<pre>Hi All,
is it possible to add a random number to some variable in the filter?
For example, like this:
filter myfilter
{
if net ~ <a href="http://192.168.11.0/24" target="_blank">192.168.11.0/24</a> then preference = preference + random(10);
...
</pre>
</blockquote>
<pre cols="72">--
Maria Matejka (she/her) | BIRD Team Leader | CZ.NIC, z.s.p.o.</pre>
</div>
</blockquote></div></div>