class crand

The crand class provides random number sequences using the standard C rand() function.

Inheritance:


Public Methods

[more] crand()
Create a generator with the default seed
[more] crand(unsigned long seed)
Create a generator with the given seed
[more]void set_seed(unsigned long seed)
Set the seed for the random number generator
[more]double next_dbl()
Get the next double uniformly distributed in [0, 1]
[more]random_seq* copy() const
Copy the random number generator
[more] ~crand()
Destructor


Inherited from random_seq:


Documentation

The crand class provides random number sequences using the standard C rand() function. Since the underlying stream generator is rand(), the state of the random number generator can not be captured with a call to copy. Also, each instance of the object samples the same random number sequence.
o crand()
Create a generator with the default seed

o crand(unsigned long seed)
Create a generator with the given seed

ovoid set_seed(unsigned long seed)
Set the seed for the random number generator

odouble next_dbl()
Get the next double uniformly distributed in [0, 1]

orandom_seq* copy() const
Copy the random number generator

o ~crand()
Destructor


This class has no child classes.

Alphabetic index HTML hierarchy of classes or Java



This page was generated with the help of DOC++.