… | |
… | |
500 | } |
500 | } |
501 | |
501 | |
502 | // return a number within the half-open interval [0..1[ |
502 | // return a number within the half-open interval [0..1[ |
503 | double operator ()() |
503 | double operator ()() |
504 | { |
504 | { |
505 | return this->next () / 0x100000000; |
505 | return this->next () / (double)0x100000000; |
506 | } |
506 | } |
507 | |
507 | |
508 | protected: |
508 | protected: |
509 | uint32_t get_range (uint32_t r_max); |
509 | uint32_t get_range (uint32_t r_max); |
510 | int get_range (int r_min, int r_max); |
510 | int get_range (int r_min, int r_max); |