#include #include using namespace std; short an=0; long rnd(long a=0,long b=2147483647); int main(void) { int zufall; zufall=rnd(); cout << zufall << endl; system ("pause"); return 0; } long rnd(long a,long b) { if (an==0) srand(time(0)); an=1; return (rand() % (b-a+1)) + a; }