0

Hey, I have a generator but it works dependently on time, so it makes new values only every second. Is there a way to make it work faster? I want to be able to generate new numbers every millisecond if possible.

```
srand((unsigned)time(0));
int a;
int b;
int c;
int d;
int e;
int f;
int g;
int h;
int i;
int j;
int lowest=0, highest=9;
int range=(highest-lowest)+1;
a = lowest+int(range*rand()/(RAND_MAX + 1.0));
b = lowest+int(range*rand()/(RAND_MAX + 1.0));
c = lowest+int(range*rand()/(RAND_MAX + 1.0));
d = lowest+int(range*rand()/(RAND_MAX + 1.0));
e = lowest+int(range*rand()/(RAND_MAX + 1.0));
f = lowest+int(range*rand()/(RAND_MAX + 1.0));
g = lowest+int(range*rand()/(RAND_MAX + 1.0));
h = lowest+int(range*rand()/(RAND_MAX + 1.0));
i = lowest+int(range*rand()/(RAND_MAX + 1.0));
j = lowest+int(range*rand()/(RAND_MAX + 1.0));
cout << a<<b<<c<<d<<e<<f<<g<<h<<i<<j<<endl;
```