Im doing a lottoline that writes out 7 random numbers in 10 lines and i need to use a vector to save the element to write out later but i got no clue what i have been missing.
Cuz when i run the code i just get all the 10 lines out but its the same numbers.
#include <iostream>
#include <string>
#include <cstdlib>
#include <iomanip>
#include <vector>
using namespace std;
int main()
{
char jn;
vector <int> v1;
bool flag = true;
while (flag == true){
cout << "Vill du starta slumpningen (j/n)" << endl;
cin >> jn;
if (jn == 'j' || jn == 'J')
{
int rad = 1;
int tal;
cout << endl;
while (rad < 11)
{
for (int v = 0; v < 7; v++ )
{