Hallo, dies ist ein Test.
PWD: /www/data-lst1/unixsoft/unixsoft/kaempfer/.public_html
Running in File Mode
Relative path: ././../../../../../../usr/man/man3sunmath/shufrans.3sunmath
Real path: /usr/share/man/man3sunmath/shufrans.3sunmath
Zurück
'\" te .\" Copyright (c) 1998, 2017, Oracle and/or its affiliates. All rights reserved. .TH shufrans 3SUNMATH "16 Jan 2017" "Solaris 11.4" "Sun Legacy Mathematical Library Functions" .SH NAME shufrans \- random number shufflers .SH SYNOPSIS .LP .nf \fBcc\fR [ \fIflag\fR ... ] \fIfile\fR ... \fB-lsunmath -lm\fR [ \fIlibrary\fR ... ] \fB#include <sunmath.h>\fR .fi .LP .nf \fBvoid i_shufrans_(int *\fR\fIx\fR\fB, int *\fR\fIn\fR\fB, int *\fR\fIl\fR\fB, int *\fR\fIu\fR\fB);\fR .fi .LP .nf \fBvoid\fR \fBu_shufrans_(unsigned *\fR\fIx\fR\fB, int *\fR\fIn\fR\fB, unsigned *\fR\fIl\fR\fB, unsigned\fR\fB*\fR\fIu\fR\fB);\fR .fi .LP .nf \fBvoid r_shufrans_(float *\fR\fIx\fR\fB, int *\fR\fIn\fR\fB, float *\fR\fIl\fR\fB, float *\fR\fIu\fR\fB);\fR .fi .LP .nf \fBvoid d_shufrans_(double *\fR\fIx\fR\fB, int *\fR\fIn\fR\fB, double *\fR\fIl\fR\fB, double *\fR\fIu\fR\fB);\fR .fi .SH DESCRIPTION .sp .LP These functions shuffle the random numbers \fIx\fR[0], ..., \fIx\fR[*\fIn\fR-1] in place. The numbers may have been generated by any method but are assumed to be uniformly distributed over the interval [\fI*l\fR,\fI*u\fR]. (If any number lies outside this interval, the results are undefined.) .sp .LP These routines use the method called "Algorithm B" by Knuth. They use an internal table of between 4 and 256 elements depending on \fI*n\fR. .SH EXAMPLES .sp .LP To shuffle 1000 double precision random numbers in [\fIlb\fR, \fIub\fR]: .sp .in +2 .nf \fBdouble x[1000], lb, ub;\fR \fBint n = 1000;\fR \fBd_shufrans_(x, &n, &lb, &ub);\fR .fi .in -2 .sp .SH ATTRIBUTES .sp .LP See \fBattributes\fR(7) for descriptions of the following attributes: .sp .TS tab( ) box; lw(2.75i) |lw(2.75i) lw(2.75i) |lw(2.75i) . ATTRIBUTE TYPE ATTRIBUTE VALUE _ Interface Stability Committed _ MT-Level MT-Safe _ Availability system/library/math .TE .sp .SH SEE ALSO .sp .LP \fBaddrans\fR(3SUNMATH), \fBdrand48\fR(3C), \fBlcrans\fR(3SUNMATH), \fBmwcrans\fR(3SUNMATH), \fBrand\fR(3C), \fBrandom\fR(3C), \fBattributes\fR(7) .sp .LP Knuth, \fISeminumerical Algorithms,\fR 1981, Addison-Wesley. .sp .LP Park and Miller, \fIRandom Number Generators: Good Ones are Hard to Find,\fR Communications of the ACM, October 1988.