User Tools

Site Tools


reference:spamrules_statement_random

Spam Filter Rules: Random

Statement Random
Version 2.5.2+
Purpose Generates a random number

The Random statement requires a lower and higher numeric bound, and a variable to assign the result to, in the format

Random <lower> <higher> <variable>
  • The variable gets set to an integer number between the lower and higher bounds, inclusive
  • If the <higher> value is lower than the <lower> value, the two numbers are swapped

Example

Random 5 10 val

#${val} contains one of 5, 6, 7, 8, 9, 10
reference/spamrules_statement_random.txt · Last modified: 2018/11/14 10:45 (external edit)