Siebel eScript Language Reference > Siebel eScript Commands > The Clib Object Math Methods >

Clib.rand() Method


This method generates a random number between 0 and RAND_MAX, inclusive.

Syntax

Clib.rand()

Parameter
Description

Not applicable

 

Returns

A pseudo-random number between 0 and RAND_MAX, inclusive. The value of RAND_MAX depends upon the operating system, but is typically 32,768.

Usage

The sequence of pseudo-random numbers is affected by the initial generator seed and by earlier calls to Clib.rand(). If seed is not supplied, then a random seed is generated in a manner that is specific to the operating system in use.

See Also

Clib.srand() Method
Math.random() Method

Siebel eScript Language Reference