123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051 |
- #pragma once
- #include "Betriebssystem.h"
- namespace Framework
- {
- class Datei;
- class RandomGenerator
- {
- private:
- struct random_data
- {
- int *fptr;
- int *rptr;
- int *state;
- int rand_type;
- int rand_deg;
- int rand_sep;
- int *end_ptr;
- };
- int randtbl[ 32 ];
- random_data unsafe_state;
- int seed;
- int offset;
- int ref;
- void srand( int seed );
- public:
-
-
- __declspec( dllexport ) RandomGenerator();
-
- __declspec( dllexport ) ~RandomGenerator();
-
- __declspec( dllexport ) double rand();
-
-
- __declspec( dllexport ) void setSeed( __int64 seed );
-
- __declspec( dllexport ) __int64 getSeed() const;
-
-
- __declspec( dllexport ) RandomGenerator *getThis();
-
-
- __declspec( dllexport ) RandomGenerator *release();
- };
- }
|