Developer Reference

  • 0.9
  • 09/09/2020
  • Public Content
Contents

?laran

Returns a random real number from a uniform distribution.

Syntax

float slaran
(
lapack_int
*iseed
);
double dlaran
(
lapack_int
*iseed
);
Description
The
?laran
routine returns a random real number from a uniform (0,1) distribution. This routine uses a multiplicative congruential method with modulus 2
48
and multiplier 33952834046453. 48-bit integers are stored in four integer array elements with 12 bits per element. Hence the routine is portable across machines with integers of 32 bits or more.
Input Parameters
iseed
Array, size 4. On entry, the seed of the random number generator. The array elements must be between 0 and 4095, and
iseed
[3]
must be odd.
Output Parameters
iseed
On exit, the seed is updated.
Return Values
The function returns a random number.

Product and Performance Information

1

Intel's compilers may or may not optimize to the same degree for non-Intel microprocessors for optimizations that are not unique to Intel microprocessors. These optimizations include SSE2, SSE3, and SSSE3 instruction sets and other optimizations. Intel does not guarantee the availability, functionality, or effectiveness of any optimization on microprocessors not manufactured by Intel. Microprocessor-dependent optimizations in this product are intended for use with Intel microprocessors. Certain optimizations not specific to Intel microarchitecture are reserved for Intel microprocessors. Please refer to the applicable product User and Reference Guides for more information regarding the specific instruction sets covered by this notice.

Notice revision #20110804