#ifndef INCLUDED_BOBCAT_RANDBUFFER_
#define INCLUDED_BOBCAT_RANDBUFFER_

#include <streambuf>
#include <memory>

namespace FBB
{

class Randbuffer: public std::streambuf
{
    int d_min;
    double d_max;
    std::unique_ptr<char> d_buffer;

    public:
        Randbuffer(int min, int max, long seed);

    private:
        virtual int underflow();
};

}

#endif
