randomly generate a vector and list

how do i do this?

i cant do it like an regular array
1
2
//wrong
arrayvector[i] = rand()%6;
Topic archived. No new replies allowed.