TESTING/MATGEN/dlarnd.f(3)

πŸ“¦
version 3.12.1 Β· 2 versions
, in arch rolling

✨ dlarnd β€” the random-number bestie ✨

okay so this page is TESTING/MATGEN/dlarnd.f(3), and it lives in the Library Functions Manual. it’s giving β€œtiny Fortran function, big main character energy” πŸ’…

🌸 NAME 🌸

TESTING/MATGEN/dlarnd.f β€” literally the file, bestie.

✨ SYNOPSIS ✨

πŸ¦‹ Functions/Subroutines πŸ¦‹

  • double precision function dlarnd (idist, iseed) β€” DLARND πŸ‘‘

🫢 Function/Subroutine Documentation 🫢

double precision function dlarnd (integer idist, integer, dimension( 4 ) iseed)

DLARND

πŸ’– Purpose πŸ’–

DLARND returns a random real number from a uniform or normal distribution. no cap, that’s the whole glow-up ✨

🌸 Parameters 🌸

  • IDIST β€” INTEGER. Specifies the distribution of the random numbers:
    • = 1: uniform (0,1)
    • = 2: uniform (-1,1)
    • = 3: normal (0,1)
  • ISEED β€” INTEGER array, dimension (4). On entry, this is the seed of the random number generator; the array elements must be between 0 and 4095, and ISEED(4) must be odd. On exit, the seed is updated. slay, but keep it odd bestie πŸ”₯

πŸ‘‘ Author πŸ‘‘

  • Univ. of Tennessee
  • Univ. of California Berkeley
  • Univ. of Colorado Denver
  • NAG Ltd.

πŸ”₯ Further Details πŸ”₯

This routine calls the auxiliary routine DLARAN to generate a random real number from a uniform (0,1) distribution. The Box-Muller method is used to transform numbers from a uniform to a normal distribution. iconic math behavior 🧚

Definition at line 72 of file dlarnd.f.

πŸ€– Author πŸ€–

Generated automatically by Doxygen for LAPACK from the source code.


cute sign-off / footer vibes: LAPACK Version 3.12.0, and the page points back to TESTING/MATGEN/dlarnd.f(3). stay random, bestie πŸ¦‹βœ¨πŸ’œ

πŸ“¦ where this page comes from