Ne.app NeANT
The Ne.app NeANT User module of the NeANT distribution.
alg3.h
Go to the documentation of this file.
1
30#ifndef ALG3_H_INCLUDED
31#define ALG3_H_INCLUDED
32
33#include <rw/_random.h>
34
36{
37public:
38 iotaGenerator (int iv) : current (iv)
39 { }
41 return current++;
42 }
43private:
44 int current;
45};
46
47
49{
50 int operator () (int m) {
51 // using a proprietary algorithm
52 return _RW::__rw_random (m);
53 }
54};
55
56#endif // ALG3_H_INCLUDED
#define m
Definition 17.names.cpp:129
int operator()()
Definition alg3.h:40
iotaGenerator(int iv)
Definition alg3.h:38
int operator()(int m)
Definition alg3.h:50