I am currently having a problem to generate non-repeating random numbers between 0-3 and trying to store it.For example: Let's say, I have random numbers like 0,1,2,3. Now in CASE 1: A=1, B=0, C=2, D=3 and CASE 2: A=3,B=1,C=2,D=0...and so on...Then I want to use this A, B, C, D values for each case. For example, I want to use these A,B,C,D as an array index... Could anybody suggests how to do that in C++. Thanks in advance.
Aucun commentaire:
Enregistrer un commentaire