+ 1

How to select random things of an array.

I think it might be rand() but when I use it it won't work.

7th Feb 2017, 7:09 PM
Mr. Robot
Mr. Robot - avatar
2 Respostas
+ 1
You can "#include <cstdlib> using namespace std;", then use "rand() % length_of_your_array".
7th Feb 2017, 7:17 PM
Álvaro