Generates uniformly distributed bits in 64-bit chunks.
Fortran:
status = virnguniformbits64( method, stream, n, r )
C:
status = viRngUniformBits64( method, stream, n, r );
The FORTRAN 77 interfaces are specified in the mkl_vsl.f77 include file, the Fortran 90 interfaces are specified in the mkl_vsl.f90 include file, and the C interfaces are specified in the mkl_vsl_functions.h include file.
Name |
Type |
Description |
---|---|---|
method |
FORTRAN 77: INTEGER Fortran 90: INTEGER, INTENT(IN) C: const int |
Generation method; the specific value is |
stream |
FORTRAN 77: INTEGER*4 stream(2) Fortran 90: TYPE (VSL_STREAM_STATE), INTENT(IN) C: VSLStreamStatePtr |
Fortran: Descriptor of the stream state structure. C: Pointer to the stream state structure |
n |
FORTRAN 77: INTEGER Fortran 90: INTEGER, INTENT(IN) C: const int |
Number of random values to be generated |
Name |
Type |
Description |
---|---|---|
r |
FORTRAN 77: INTEGER*8 Fortran 90: INTEGER (KIND=8), INTENT(OUT) C: unsigned long long* |
Fortran: Vector of n 64-bit random integer numbers with uniform bit distribution. C: Vector of n 64-bit random integer numbers with uniform bit distribution. |
The UniformBits64 function generates uniformly distributed bits in 64-bit chunks. Unlike UniformBits, which provides the output of underlying integer recurrence and does not guarantee uniform distribution across bits, UniformBits64 is designed to ensure each bit in the 64-bit chunk is uniformly distributed. See VSL Notes for details.
Indicates no error, execution is successful.
stream is a NULL pointer.
stream is not a valid random stream.
BRNG is not supported by the function.
Callback function for an abstract BRNG returns 0 as the number of updated entries in a buffer.
Period of the generator has been exceeded.
Copyright © 1994 - 2011, Intel Corporation. All rights reserved.