I am trying to get two random numbers in a row with C:

```
#include <time.h>
#include <stdlib.h>
void testcollgenarray() {
    for(int i=0; i<10; i++)
    {
        int r1 = rand() % 256;
        int r2 = rand() % 256;
        cout << r1 << endl;
        cout << r1 << endl;
    }
}

```

Apparently, in each loop the random number generator is outputing the same number:

```
207
207
41
41
98
98
49
49
6
6
8
8
95
95
79
79
154
154
252
252

```