Changeset 793 for cpp/frams/util/rndutil.h
- Timestamp:
- 05/29/18 16:51:14 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified cpp/frams/util/rndutil.h ¶
r286 r793 12 12 13 13 /** @param x change seed if x<=0 14 14 @return random value [0..x-1] if x>0 */ 15 15 unsigned short pseudornd(short x); 16 16 … … 25 25 class RandomGener 26 26 { 27 28 RandomGener() {isNextGauss=0;}29 30 31 double Gauss(double m,double s); ///< usually will not return further than 5*stdd32 33 34 27 public: 28 RandomGener() { isNextGauss = 0; } 29 static double Uni(double begin, double end); ///< uniform excluding 'end' boundary 30 double GaussStd(); 31 double Gauss(double m, double s); ///< usually will not return further than 5*stdd 32 private: 33 int isNextGauss; 34 double nextGauss; 35 35 }; 36 36
Note: See TracChangeset
for help on using the changeset viewer.