v8  3.25.30(node0.11.13)
V8 is Google's open source JavaScript engine
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
MyRandomNumberGenerator Class Reference

Public Member Functions

 MyRandomNumberGenerator ()
 
void init (uint32_t seed=0x5688c73e)
 
uint32_t next ()
 
uint32_t next (int max)
 
bool next (double threshold)
 

Detailed Description

Definition at line 43 of file test-strings.cc.

Constructor & Destructor Documentation

Definition at line 45 of file test-strings.cc.

References init().

Member Function Documentation

void init ( uint32_t  seed = 0x5688c73e)
inline

Definition at line 49 of file test-strings.cc.

Referenced by MyRandomNumberGenerator().

uint32_t next ( )
inline

Definition at line 61 of file test-strings.cc.

Referenced by next().

uint32_t next ( int  max)
inline

Definition at line 75 of file test-strings.cc.

References next().

bool next ( double  threshold)
inline

Definition at line 79 of file test-strings.cc.

References ASSERT, and next().


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