function [str] = genString()
% This function generates a random string of characters of length 10

% Initialize the random number generator
rand('state', sum(100*clock));

% Initialize the string
codes = zeros(1,10);

% Generate 10 random integers between 97 and 112 (inclusive)
for i = 1:1:10
    codes(i) = randi(26) + 96;
end

% Convert the integers into their character counterparts - voila!
% We have a random 10 character string that we can return
str = char(codes);

end

