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.
Function
INTEGER(4)
A pseudo-random positive integer greater than 0 and less than or equal to 32768