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. π
π COPYRIGHT π
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 πβ¨π
π¦ where this page comes from
- debian bookworm: manpages-posix-dev 2017a-2 Β· Other
- debian trixie: manpages-posix-dev 2017a-2 Β· Other
- ubuntu jammy: manpages-posix-dev 2017a-2 Β· Other
- ubuntu noble: manpages-posix-dev 2017a-2 Β· Other
- ubuntu resolute: manpages-posix-dev 2017a-2build1 Β· Other
- ubuntu stonking: manpages-posix-dev 2017a-2.1 Β· Other
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms