Ignore:
Timestamp:
05/29/18 16:51:14 (6 years ago)
Author:
Maciej Komosinski
Message:

Code formatting

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpp/frams/util/rndutil.h

    r286 r793  
    1212
    1313/** @param x change seed if x<=0
    14     @return random value [0..x-1] if x>0 */
     14        @return random value [0..x-1] if x>0 */
    1515unsigned short pseudornd(short x);
    1616
     
    2525class RandomGener
    2626{
    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;
     27public:
     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
     32private:
     33        int isNextGauss;
     34        double nextGauss;
    3535};
    3636
Note: See TracChangeset for help on using the changeset viewer.