Fortinet white logo
Fortinet white logo

Script Reference Guide

Rand_seq(int)

Rand_seq(int)

Generates a random number sequence. Returns a string, length is the <int>.

Syntax

Rand_seq(int);

Arguments

Name Description

Int

An integer which specifies the length of the returned string.

Events

Applicable in all events.

Example

when HTTP_REQUEST {
d = rand_seq(18)
debug("-----rand_seq d = %s-----\n", d)
}
Result:

-----rand_seq = 329514876985314568-----

Supported Version

FortiADC version 5.2.x and later.

Rand_seq(int)

Rand_seq(int)

Generates a random number sequence. Returns a string, length is the <int>.

Syntax

Rand_seq(int);

Arguments

Name Description

Int

An integer which specifies the length of the returned string.

Events

Applicable in all events.

Example

when HTTP_REQUEST {
d = rand_seq(18)
debug("-----rand_seq d = %s-----\n", d)
}
Result:

-----rand_seq = 329514876985314568-----

Supported Version

FortiADC version 5.2.x and later.