function x = randiLike(obj, varargin)
%RANDILIKE Helper for calling RANDI using the like syntax.
%   
%   This function is for internal use only. It may be removed in the future.

%   Copyright 2020 The MathWorks, Inc.

data = gatherData(obj.FormattedData);

xdata = randi(varargin{:}, 'like', data);

x = dlarray(xdata);
end
