Table of Contents

Search

  1. Preface
  2. Function reference
  3. Constants
  4. Operators
  5. Dates
  6. Functions
  7. System variables
  8. Datatype reference

Function Reference

Function Reference

RAND

RAND

Returns a random number between 0 and 1. This is useful for probability calculations.

Syntax

RAND( seed )
Argument
Required/
Optional
Description
seed
Optional
Numeric. Starting value for
Data Integration
to generate the random number. Value must be a constant. If you do not enter a seed,
Data Integration
uses the current system time to derive the numbers of seconds since January 1, 1971. It uses this value as the seed.

Return Value

Numeric.
For the same seed,
Data Integration
generates the same sequence of numbers.

Example

The following expression may return a value of 0.417022004702574:
RAND (1)

0 COMMENTS

We’d like to hear from you!