%% Random Integers of Other Data Types
% Create a 1-by-4 vector of random numbers whose elements are of type int16.

r = randi(100,1,4,'int16')

%

class(r)

% Copyright 2012 The MathWorks, Inc.