Random Selection without replacement

#include "stdafx.h"
#include <cstdlib>
#include <iostream>
#include <time.h>
#include <stdio.h>
using namespace std;

int _tmain(int argc, _TCHAR* argv[])
{
	clock_t start;   /* Line 8 */
    clock_t finish;  /* Line 9 */
	const int arraysize=36;
	const int SelectN=6;
	int row[SelectN];
	int Crows=100;
	int g;
	int arraycounter=arraysize;
	int a[arraysize+1];
	start = clock();
	srand(60);
	for (int k=0;k<Crows;k++)
		{
		arraycounter=arraysize;
		for(int i=0; i<=arraysize;i++) {a[i]=i;}
			for(int i=0; i<SelectN;i++) 
				{	g=rand()%arraycounter;
					row[i]=a[g];//fill the row array
					//cout<<"g: "<<g<<"=>|"<<a[g]<<"|";
					cout<<" "<<a[g];
					a[g]=a[arraycounter];
					arraycounter--;
				}
		cout<<endl;
		}

	cout<<endl<<endl<<endl<<endl<<endl;
	finish = clock() - start;
    double interval = finish / (double)CLOCKS_PER_SEC; 
	cout<<endl;
	printf("%f clock cycles", finish); cout<<endl;  
	printf("%f seconds elapsed", interval);cout<<endl;
	system("PAUSE");
	return 0;
}