Added routine fgenerating random strings.

parent 848f540f
......@@ -50,6 +50,10 @@ if ~exist('get_cells_id','file')
addpath([dseries_src_root '/utilities/missing/get_cells_id'])
end
if ~exist('randomstring','file')
addpath([dseries_src_root '/utilities/missing/randomstring'])
end
% Install X13 binaries
opath = pwd();
cd([dseries_src_root '/../externals/x13'])
......
function str = randomstring(len)
% Returns a string of length len, begining with a letter.
% Copyright (C) 2016-2017 Dynare Team
%
% This code is part of dseries toolbox.
%
% This code is free software you can redistribute it and/or modify
% it under the terms of the GNU General Public License as published by
% the Free Software Foundation, either version 3 of the License, or
% (at your option) any later version.
%
% This code is distributed in the hope that it will be useful,
% but WITHOUT ANY WARRANTY; without even the implied warranty of
% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
% GNU General Public License for more details.
%
% You should have received a copy of the GNU General Public License
% along with Dynare. If not, see <http://www.gnu.org/licenses/>.
Symbols = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789';
str = [Symbols(randi(2*26)), Symbols(randi(length(Symbols), 1, len-1))];
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment