HPL_setran man page on DragonFly

Man page or keyword search:  
man Server   44335 pages
apropos Keyword Search (all sections)
Output format
DragonFly logo
[printable version]

HPL_setran(3)		     HPL Library Functions		 HPL_setran(3)

NAME
       HPL_setran - Manage the random number generator.

SYNOPSIS
       #include "hpl.h"

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

DESCRIPTION
       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.

ARGUMENTS
       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.

SEE ALSO
       HPL_ladd (3),	 HPL_lmul (3),	   HPL_xjumpm (3),     HPL_jumpit (3),
       HPL_rand (3).

HPL 2.1			       October 26, 2012			 HPL_setran(3)
[top]

List of man pages available for DragonFly

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net