dimanche 2 décembre 2018

random from array in cpp

I want to know how do random function while the values of the random it are from array that exsit at the program (pointer int). the code of my now is: v=rand() %((array[0] - array[size_c]) + 1); but the value of v not belong to array thank you




Aucun commentaire:

Enregistrer un commentaire