#include <BasicRandom.hh>
Public Types | |
| typedef int | value_type |
| typedef unsigned int | size_type |
| typedef value_type * | pointer |
Public Member Functions | |
| BasicRandom (int __s1=12345, int __s2=67890) | |
| value_type | operator() () |
| void | operator() (size_type __n, pointer __res) |
| void | randomize (void *__iseed) |
| void | set_status (const std::vector< int > &__iseed) |
| void | get_status (std::vector< int > &__iseed) |
| void | print_info (std::ostream &__os=std::cout) |
Static Public Member Functions | |
| value_type | min () |
| value_type | max () |
Private Attributes | |
| int | _M_iseed [2] |
|
|
Definition at line 63 of file BasicRandom.hh. Referenced by operator()(). |
|
|
Definition at line 62 of file BasicRandom.hh. Referenced by operator()(). |
|
|
Definition at line 61 of file BasicRandom.hh. Referenced by max(), min(), and operator()(). |
|
||||||||||||
|
Definition at line 66 of file BasicRandom.hh.
|
|
|
Definition at line 94 of file BasicRandom.hh.
00094 {
00095 __iseed.resize(2);
00096 __iseed[0] = _M_iseed[0];
00097 __iseed[1] = _M_iseed[1];
00098 }
|
|
|
Definition at line 102 of file BasicRandom.hh. References value_type.
00102 { return 2147483647;}
|
|
|
Definition at line 101 of file BasicRandom.hh. References value_type.
00101 { return 0;}
|
|
||||||||||||
|
Definition at line 76 of file BasicRandom.hh. References fastjet::__default_random_generator(), pointer, and size_type.
00076 {
00077 for(size_type __i = 0; __i < __n; __i++)
00078 __res[__i] = __default_random_generator(_M_iseed);
00079 }
|
|
|
Definition at line 72 of file BasicRandom.hh. References fastjet::__default_random_generator(), and value_type.
00072 {
00073 return __default_random_generator(_M_iseed);
00074 }
|
|
|
Definition at line 105 of file BasicRandom.hh.
00105 {
00106 __os<<"BasicRandom<int> : "<<_M_iseed[0]<<", "<<_M_iseed[1]<<std::endl;
00107 }
|
|
|
Definition at line 82 of file BasicRandom.hh.
|
|
|
Definition at line 88 of file BasicRandom.hh.
|
|
|
Definition at line 110 of file BasicRandom.hh. |
1.3.4