0
Can we make an array and read the randomly generated values one by one into the array using a for loop ??
1 Odpowiedź
+ 3
you can load your array with random numbers this way:
for (int i=0; i < sizeOfArray; i++)
array_name [i]=rand ();
but remember to include <ctime> and srand (time (0)) at the beginning so that rand () generates different numbers