Atoms Crowd  7.0.0
Rand48 Class Reference

#include <ImathRandom.h>

Public Member Functions

ATOMSMATH_HOSTDEVICE Rand48 (unsigned long int seed=0)
 Constructor.
 
ATOMSMATH_HOSTDEVICE void init (unsigned long int seed)
 Re-initialize with a given seed.
 
ATOMSMATH_HOSTDEVICE bool nextb ()
 Get the next value in the sequence (range: [false, true])
 
ATOMSMATH_HOSTDEVICE long int nexti ()
 Get the next value in the sequence (range: [0 ... 0x7fffffff])
 
ATOMSMATH_HOSTDEVICE double nextf ()
 Get the next value in the sequence (range: [0 ... 1[)
 
ATOMSMATH_HOSTDEVICE double nextf (double rangeMin, double rangeMax)
 Get the next value in the sequence (range [rangeMin ... rangeMax[)
 

Detailed Description

Random-number generator based on the C Standard Library functions erand48(), nrand48() & company; generates a uniformly distributed sequence.


The documentation for this class was generated from the following file: