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

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(). For information about the initial generator seed, read Clib.srand() Method.

See Also

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


 Siebel eScript Language Reference 
 Published: 18 April 2003