ERAND48(3POSIX)

πŸ’– ERAND48 β€” the POSIX Programmer's Manual one πŸ’–

okay bestie, real talk: this page lives inside the POSIX Programmer's Manual, that's its whole home base. but heads up β€” the Linux implementation of this interface may be different from what's written here, so if you're on Linux, go peek at the corresponding Linux manual page for the actual tea. and lowkey? the interface might not even be implemented on Linux at all. πŸ™ˆ so vibe check first, code later.


✨ PROLOG ✨

so this manual page is part of the POSIX Programmer's Manual. that's the lore. πŸŽ€

but the Linux implementation of this interface may differ β€” consult the corresponding Linux manual page for the details of Linux behavior. or, plot twist, the interface may not be implemented on Linux. it's giving "maybe, maybe not" and honestly? iconic. πŸ’…


🌸 NAME 🌸

erand48 β€” generate uniformly distributed pseudo-random numbers

yes bestie, random numbers. uniformly distributed ones. the good stuff. ✨


πŸ¦‹ SYNOPSIS πŸ¦‹

#include <stdlib.h>

double erand48(unsigned short xsubi[3]);

look at that little signature. she's short, she's sweet, she takes an array of three unsigned shorts and she gives you back a double. periodt. πŸ’œ


πŸ‘‘ DESCRIPTION πŸ‘‘

Refer to drand48().

that's it. that's the whole description. she's a delegator, she's got main character energy, and she is NOT explaining herself twice. go read drand48(). iykyk. πŸ’€


okay this part is the serious bit, no skipping, no skimming, we respect the legal text in this house:

Portions of this text are reprinted and reproduced in electronic form from IEEE Std 1003.1-2017, Standard for Information Technology -- Portable Operating System Interface (POSIX), The Open Group Base Specifications Issue 7, 2018 Edition, Copyright (C) 2018 by the Institute of Electrical and Electronics Engineers, Inc and The Open Group. In the event of any discrepancy between this version and the original IEEE and The Open Group Standard, the original IEEE and The Open Group Standard is the referee document. The original Standard can be obtained online at http://www.opengroup.org/unix/online.html .

fr fr β€” if this page and the original standard ever disagree, the original IEEE and The Open Group Standard wins. it's the referee. no arguments, bestie. 🫢

Any typographical or formatting errors that appear in this page are most likely to have been introduced during the conversion of the source files to man page format. To report such errors, see https://www.kernel.org/doc/man-pages/reporting_bugs.html .

so if you spot a typo, it's probably a conversion oopsie, not a real one. report it at that link and we move on. 🌈


and that's the whole page, bestie!! brought to you by IEEE/The Open Group, dated 2017, and it's the ERAND48(3POSIX) page in the POSIX Programmer's Manual β€” thanks for reading, go forth and generate your uniformly distributed pseudo-random numbers, mwah πŸ’–βœ¨πŸŽ€