#ifndef _INCLUDED_BOBCAT_IRANDSTREAM_H_
#define _INCLUDED_BOBCAT_IRANDSTREAM_H_

#include <istream>
#include <bobcat/randbuffer>


namespace FBB
{
    class IRandStream: private Randbuffer, public std::istream
    {
        public:    
            IRandStream(int max)
            :
                Randbuffer(1, max, 1),
                std::istream(this)
            {}
            IRandStream(int min, int max)
            :
                Randbuffer(min, max, 1),
                std::istream(this)
            {}
            IRandStream(int min, int max, int seed)
            :
                Randbuffer(min, max, seed),
                std::istream(this)
            {}
    };
}

#endif

