GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
HPL_setran(3) HPL Library Functions HPL_setran(3)

HPL_setran - Manage the random number generator.

#include "hpl.h"

void HPL_setran( const int OPTION, int * IRAN );

HPL_setran initializes the random generator with the encoding of the first number X(0) in the sequence, and the constants a and c used to compute the next element in the sequence: X(n+1) = a*X(n) + c. X(0), a and c are stored in the static variables irand, ias and ics. When OPTION is 0 (resp. 1 and 2), irand (resp. ia and ic) is set to the values of the input array IRAN. When OPTION is 3, IRAN is set to the current value of irand, and irand is then incremented.

OPTION (local input) const int
On entry, OPTION is an integer that specifies the operations to be performed on the random generator as specified above.
IRAN (local input/output) int *
On entry, IRAN is an array of dimension 2, that contains the 16-lower and 15-higher bits of a random number.

HPL_ladd (3), HPL_lmul (3), HPL_xjumpm (3), HPL_jumpit (3), HPL_rand (3).
December 2, 2018 HPL 2.3

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.