const int FIRST_VAL = 0;
const int SECOND_VAL =1;
const int THIRD_VAL =2;
const int FOURTH_VAL = 3;
const int FIFTH_VAL = 4;
const int SIXTH_VAL = 5;
const int SEVENTH_VAL = 6;
const int EIGHTH_VAL = 7;
const int NINTH_VAL = 8;
const int TENTH_VAL = 9;

bool excluded[10]={
                    false, 
                    false, 
                    false,
                    false,
                    false,
                    false,
                    false,
                    false,
                    false,
                    false};
                    
int listTen[10]= {
                0, 0, 0, 0, 0, 0, 0, 0, 0, 0};

int shuffleValues(){
    int first = Rand(1,10);
    excluded[first-1] = true;
    listTen[0] = first;
    int second = ReRandTen(1,10, first, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
    excluded[second-1] = true;
    listTen[1] = second;
    int third = ReRandTen(1,10, first, second, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
    excluded[third-1] = true;
    listTen[2] = third;
    int fourth = ReRandTen(1,10, first, second, third, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
    excluded[fourth-1] = true;
    listTen[3] = fourth;
    int fifth = ReRandTen(1,10, first, second, third, fourth, NULL, NULL, NULL, NULL, NULL, NULL);
    excluded[fifth-1] = true;
    listTen[4] = fifth;
    int sixth = ReRandTen(1,10, first, second, third, fourth, fifth, NULL, NULL, NULL, NULL, NULL);
    excluded[sixth-1] = true;
    listTen[5] = sixth;
    int seventh = ReRandTen(1,10, first, second, third, fourth, fifth, sixth, NULL, NULL, NULL, NULL);
    excluded[seventh-1] = true;
    listTen[6] = seventh;
    int eighth = ReRandTen(1,10, first, second, third, fourth, fifth, sixth, seventh, NULL, NULL, NULL);
    excluded[eighth-1] = true;
    listTen[7] = eighth;
    int ninth = ReRandTen(1,10, first, second, third, fourth, fifth, sixth, seventh, eighth, NULL, NULL);
    excluded[ninth-1] = true;
    listTen[8] = ninth;
    int ninth = ReRandTen(1,10, first, second, third, fourth, fifth, sixth, seventh, eighth, ninth, NULL);
    excluded[tenth] = true;
    listTen[9] = tenth;
    return first;
    return second;
    return third;
    return fourth;
    return fifth;
    return sixth;
    return seventh;
    return eighth;
    return ninth;
    return tenth;
    }

void clearRandomTen(){
    listTen[0] = 0;
    listTen[1] = 0;
    listTen[2] = 0;
    listTen[3] = 0;
    listTen[4] = 0;
    listTen[5] = 0;
    listTen[6] = 0;
    listTen[7] = 0;
    listTen[8] = 0;
    listTen[9] = 0;
}





int reRand(int min, int max, int exclude){
        int value;
        do{
            value = Rand(min, max);
        }
            while(value < min || value == exclude);
            return value;
        }


reRandTen(int min, int max, int exclude1, int exclude2, int exclude3, exclude4, int exclude5, int exclude6, int exclude7, int exclude8, int exclude9 ){
int valueOne;
int vaueTwo;
int valueThree;
int valueFour;
int valuefive;
int valueSix;
int valueSeven;
int valueeight;
int valueNine;
int valueTen;
if ( exclude1 > 0 && 
    exclude2 > 0 && 
    exclude3 > 0 && 
    exclude4 > 0 && 
    exclude5 > 0 && 
    exclude6 > 0 && 
    exclude7 > 0 && 
    exclude8 > 0 && 
    exclude9 > 0 && 
    exclude10 > 0 ) {
        return -9999;
    }
else {
    if ( listTen[0] == 0 ) {
        value1 = reRand(min, max, int exclude1);
    }
    if ( listTen[0] == 0 ) {
        value1 = reRand(min, max, int exclude1);
    }
    if ( listTen[0] == 0 ) {
        value1 = reRand(min, max, int exclude1);
    }
    if ( listTen[0] == 0 ) {
        value1 = reRand(min, max, int exclude1);
    }
    if ( listTen[0] == 0 ) {
        value1 = reRand(min, max, int exclude1);
    }
    if ( listTen[0] == 0 ) {
        value1 = reRand(min, max, int exclude1);
    }
    if ( listTen[0] == 0 ) {
        value1 = reRand(min, max, int exclude1);
    }
    if ( listTen[0] == 0 ) {
        value1 = reRand(min, max, int exclude1);
    }
    if ( listTen[0] == 0 ) {
        value1 = reRand(min, max, int exclude1);
    }
    if ( listTen[0] == 0 ) {
        value1 = reRand(min, max, int exclude1);
    }
        
        
        while(value != exclude1 &&
                value !=exclude2 &&
                value !=exclude3 &&
                value !=exclude4 &&
                value !=exclude5 &&
                value !=exclude6 &&
                value !=exclude7 &&
                value !=exclude8 &&
                value !=exclude9 &&
                value !=exclude10 )
            return value;