Public Member Functions | |
unsigned int | operator() (unsigned int __limit) |
Returns a number less than the argument. | |
void | _M_initialize (unsigned int __seed) |
subtractive_rng (unsigned int __seed) | |
Ctor allowing you to initialize the seed. | |
subtractive_rng () | |
Default ctor; initializes its state with some number you don't see. | |
Private Attributes | |
unsigned int | _M_table [55] |
size_t | _M_index1 |
size_t | _M_index2 |
subtractive_rng
class is documented on SGI's site. Note that this code assumes that int
is 32 bits.
Definition at line 333 of file ext/functional.
|
Ctor allowing you to initialize the seed.
Definition at line 367 of file ext/functional. References _M_initialize(). |
|
Default ctor; initializes its state with some number you don't see.
Definition at line 369 of file ext/functional. References _M_initialize(). |
|
Definition at line 347 of file ext/functional. References _M_index1, and _M_index2. Referenced by subtractive_rng(). |
|
Returns a number less than the argument.
Definition at line 340 of file ext/functional. |
|
Definition at line 336 of file ext/functional. Referenced by _M_initialize(), and operator()(). |
|
Definition at line 337 of file ext/functional. Referenced by _M_initialize(), and operator()(). |
|
Definition at line 335 of file ext/functional. |