Read the matrix into a variable with csvread(). Then get random samples with randperm():
myData = csvread(filename);
numberToGet = 1000; % or whatever number you want.
randomLocations = randperm(numel(myData), numberToGet)
randomlySelectedValues = myData(randomLocations); % Uses linear indexing into a 2D matrix.