random_shuffle() not working? what am I - C++ Forum
www.cplusplus.com › forum › beginnerMar 19, 2018 · Could somebody tell me what I'm doing wrong here, I'm trying to shuffle my vector string elements randomly and then display them but every time I run it it gives me the same output: 5, 3, 2, 1, 6, 4, even though I'm seeding the generator with the time. To confirm srand is working I called rand() various times [not shown in code below] and each ...