?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

The FORTRAN 77 interfaces are specified in the mkl_lapack.fi include file (to be used in Fortran programs) and in the mkl_lapack.h include file (to be used in C programs).

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.


Submit feedback on this help topic

Copyright © 1994 - 2011, Intel Corporation. All rights reserved.