This shows you the differences between two versions of the page.
Last revision | |||
— | reference:spamrules_statement_random [2011/10/25 11:18] – created paul | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ======Spam Filter Rules: Random====== | ||
+ | ^Statement | ||
+ | ^Version | ||
+ | ^Purpose | ||
+ | |||
+ | The **Random** statement requires a lower and higher numeric bound, and a variable to assign the result to, in the format | ||
+ | Random < | ||
+ | |||
+ | *The variable gets set to an integer number between the lower and higher bounds, inclusive | ||
+ | *If the < | ||
+ | |||
+ | =====Example===== | ||
+ | < | ||
+ | Random 5 10 val | ||
+ | |||
+ | #${val} contains one of 5, 6, 7, 8, 9, 10 | ||
+ | </ | ||