Skip to content
Snippets Groups Projects
Select Git revision
  • 0ec8d86d2c2caacd3217fad5e0ba37b7895bd8ee
  • main default protected
  • tests
3 results

phpstan.neon

Blame
  • Dice.hpp 329 B
    #ifndef DICE_HPP
    #define DICE_HPP
    
    #include <random>
    
    class Dice
    {
      private:
    
        std::mt19937 mt_;
        std::uniform_int_distribution<unsigned int> distribution_;
    
        Dice();
        Dice(const Dice& copy) = delete;
        ~Dice() = default;
    
      public:
    
        static Dice& getInstance();
        unsigned int roll();
    };
    
    #endif // DICE_HPP