Developer Reference for Intel® oneAPI Math Kernel Library for Fortran

ID 766686
Date 12/16/2022
Public

A newer version of this document is available. Customers should click here to go to the newest version.

Document Table of Contents

?laruv

Returns a vector of n random real numbers from a uniform distribution.

Syntax

call slaruv( iseed, n, x )

call dlaruv( iseed, n, x )

Include Files
  • mkl.fi
Description

The routine ?laruv returns a vector of n random real numbers from a uniform (0,1) distribution (n ≤ 128).

This is an auxiliary routine called by ?larnv.

Input Parameters
iseed

INTEGER. Array, DIMENSION (4). On entry, the seed of the random number generator; the array elements must be between 0 and 4095, and iseed(4) must be odd.

n

INTEGER. The number of random numbers to be generated. n ≤ 128.

Output Parameters
x

REAL for slaruv

DOUBLE PRECISION for dlaruv

Array, DIMENSION (n). The generated random numbers.

seed

On exit, the seed is updated.