irand()

Purpose

The irand function generates a positive integer number greater than 0 and less than or equal to 32768. The intrinsic subroutine SRAND(SEED) is used to provide the seed value for the random number generator.

Class

Function

Result Type and Attributes

INTEGER(4)

Result Value

A random positive integer greater than 0 and less than or equal to 32768 IBM Copyright 2003